Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Little corrections in the docs #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/error_log_debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -36,7 +36,7 @@ using *throw\_errors*.

<div class="note">You will need the Logger plugin which is bundled with Atomik as well as Monolog which you'll need to install</div>

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);
Expand Down
2 changes: 1 addition & 1 deletion docs/global_store.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion docs/translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/urls.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));
2 changes: 1 addition & 1 deletion docs/views.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down