From 8aefdead332b50f6c62ad6015ed7ab72ec7a206d Mon Sep 17 00:00:00 2001 From: "Sruu.pl" Date: Tue, 26 Dec 2017 19:07:11 +0100 Subject: [PATCH] =?UTF-8?q?Editing=20batflat=5Fpl.md=20at=20master=20?= =?UTF-8?q?=C2=B7=20sruupl=5Fbatflat.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.