From 1817e9db27ba02abded6fc76c271a49be086aa4b Mon Sep 17 00:00:00 2001 From: GilDev Date: Thu, 30 Apr 2015 16:26:21 +0200 Subject: [PATCH 1/3] Little corrections in the docs --- docs/error_log_debug.md | 2 +- docs/helpers.md | 2 +- docs/translations.md | 2 +- docs/urls.md | 2 +- docs/views.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/error_log_debug.md b/docs/error_log_debug.md index d34946c..cc556fa 100644 --- a/docs/error_log_debug.md +++ b/docs/error_log_debug.md @@ -36,7 +36,7 @@ using *throw\_errors*.
You will need the Logger plugin which is bundled with Atomik as well as Monolog which you'll need to install
-The Logger plugin provides a simple way of logging messages. It provides the ̀log()` helper +The Logger plugin provides a simple way of logging messages. It provides the `log()` helper which takes two arguments, the second one being optional: the message and the level (default is `LOG_ERR` = 3). $this->log('an error has occured!', LOG_ERR); diff --git a/docs/helpers.md b/docs/helpers.md index 7dbfa56..f449944 100644 --- a/docs/helpers.md +++ b/docs/helpers.md @@ -44,7 +44,7 @@ They are accessible as methods of `$this`. ## Registering helpers -You can also registers helper using the `Atomik::registerHelper()` function: +You can also register helpers using the `Atomik::registerHelper()` function: Atomik::registerHelper('say_hello', function() { echo 'hello'; diff --git a/docs/translations.md b/docs/translations.md index d145b0c..4d22d0e 100644 --- a/docs/translations.md +++ b/docs/translations.md @@ -15,7 +15,7 @@ be changed using the *dir* configuration key. Files be named after the first part of the locale. For example, if the file provide translation to French, it has to be named *fr.php* (because the locale is fr-fr). -In the language file you must defined messages using the +In the language file you must define messages using the `Translations::setMessages()` method. The messages is made of the string of the original language and the translated one. diff --git a/docs/urls.md b/docs/urls.md index 26b579c..a970bb0 100644 --- a/docs/urls.md +++ b/docs/urls.md @@ -239,6 +239,6 @@ with `Atomik::url()`. For assets, it also exists `Atomik::appAsset()` and `Atomik::pluginAsset()`. The latter, like `Atomik::pluginUrl()`, needs a plugin name as the first argument. -Inside views, you should call any Atomik methods through `$this`: +Inside views, you should call any Atomik method through `$this`: $url = $this->url('archives', array('year' => 2008)); diff --git a/docs/views.md b/docs/views.md index 9618192..6f01dad 100644 --- a/docs/views.md +++ b/docs/views.md @@ -138,7 +138,7 @@ The custom rendering engine will be used whenever `Atomik::render()`, When executing a request, the action and/or the view associated to it are automatically called. You can however render other views using Atomik's API. -The most useful use of this it to render partial views, small part of presentation +The most useful use of this is to render partial views, small part of presentation code that is reusable. To render a view use the `Atomik::render()` method. From 20b27fa32147d6f1bf17ecdf0b34b886f5d86cd5 Mon Sep 17 00:00:00 2001 From: GilDev Date: Thu, 30 Apr 2015 20:30:56 +0200 Subject: [PATCH 2/3] Small text formating error --- docs/global_store.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/global_store.md b/docs/global_store.md index 84cfe4f..82d7c8c 100644 --- a/docs/global_store.md +++ b/docs/global_store.md @@ -134,7 +134,7 @@ and views. Get values using the same syntax as with arrays: unset($this['users.paul']); } -Accessors are also available as methods of ̀$this`: +Accessors are also available as methods of `$this`: $age = $this->get('users.paul.age', 21); From 850e5e06945e93199b799cbb8277881d58132282 Mon Sep 17 00:00:00 2001 From: GilDev Date: Fri, 1 May 2015 17:53:18 +0200 Subject: [PATCH 3/3] Spelling correction --- docs/error_log_debug.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/error_log_debug.md b/docs/error_log_debug.md index cc556fa..bd64850 100644 --- a/docs/error_log_debug.md +++ b/docs/error_log_debug.md @@ -25,7 +25,7 @@ and by default *errors/error*) it will be rendered otherwise an error report is 'catch_errors' => true )); -By default, uncatched errors are silently droped. You can instead let the exception be thrown +By default, uncatched errors are silently dropped. You can instead let the exception be thrown using *throw\_errors*. Atomik::set('plugins.Errors', array(