diff --git a/docs/en.md b/docs/en.md index 6671e35..0d204e6 100644 --- a/docs/en.md +++ b/docs/en.md @@ -402,10 +402,10 @@ This file is responsible for the portion seen by visitors of the website. If the public function routes() { - $this->route('example', '_mySite'); + $this->route('example', 'mySite'); } - private function _mySite() + public function mySite() { $page = [ 'title' => 'Sample title..', @@ -424,7 +424,7 @@ This file is responsible for the portion seen by visitors of the website. If the } ``` -In the above example, a new `bar` template variable has been created which, by calling the `_foo()` method in the module initializer, can be used in the theme files as `{$bar}`. In addition, the `routes()` method has created a `/example` subroutine that points to the `_mySite()` method call. If you go to `http://example.com/example`, you will call the `_mySite()` method. +In the above example, a new `bar` template variable has been created which, by calling the `_foo()` method in the module initializer, can be used in the theme files as `{$bar}`. In addition, the `routes()` method has created a `/example` subroutine that points to the `mySite()` method call. If you go to `http://example.com/example`, you will call the `mySite()` method. ### Language files @@ -1343,4 +1343,4 @@ Languages All language files are located in the `lang` directories inside the modules and under the `inc/lang` path. In this last path there are folders corresponding to the language names in the following format: `en_english`. The first part is the abbreviation of the language and the second is the full name. Within the directory is the `general.ini` file, which contains general language variables for the system. -After creating a new language folder, Batflat automatically detects the added language and allows it to be selected in the admin panel. Note that the procedure for creating a new language should be repeated for each module. \ No newline at end of file +After creating a new language folder, Batflat automatically detects the added language and allows it to be selected in the admin panel. Note that the procedure for creating a new language should be repeated for each module.