Merge pull request #293 from Loki3000/master

fix error in docs
This commit is contained in:
Maxim Kostjukevich 2018-06-15 08:13:03 +03:00 committed by GitHub
commit 5b46e54133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,7 @@ Options may by associative array like `'option_name' => true` or bitwise mask.
```php
$fenom->setOptions(array(
"compile_check" => true,
"force_compile" => true,
"force_include" => true
));
// same

View File

@ -8,12 +8,12 @@ By default format is: `%b %e, %Y`.
```smarty
{var $ts = time()}
{$ts|date_format:"%Y/%m/%d %H:%M:%s"} outputs 2013/02/08 21:01:43
{$ts|date_format:"%Y/%m/%d %H:%M:%S"} outputs 2013/02/08 21:01:43
{$ts|date_format:"-1 day"} outputs 2013/02/07 21:01:43
{var $date = "2008-12-08"}
{$ts|date_format:"%Y/%m/%d %H:%M:%s"} outputs 2008/12/08 00:00:00
{$ts|date_format:"%Y/%m/%d %H:%M:%S"} outputs 2008/12/08 00:00:00
```
[Allowed quantificators](http://docs.php.net/strftime#refsect1-function.strftime-parameters) in **date_format**

View File

@ -43,7 +43,7 @@ $fenom->setOptions($options);
```php
$fenom->setOptions(array(
"compile_check" => true,
"force_compile" => true,
"force_include" => true
));
// тоже самое что и

View File

@ -14,12 +14,12 @@
```smarty
{var $ts = time()}
{$ts|date_format:"%Y/%m/%d %H:%M:%s"} выведет 2013/02/08 21:01:43
{$ts|date_format:"%Y/%m/%d %H:%M:%S"} выведет 2013/02/08 21:01:43
{$ts|date_format:"-1 day"} выведет вчерашний день, например 2013/02/07 21:01:43
{var $date = "2008-12-08"}
{$ts|date_format:"%Y/%m/%d %H:%M:%s"} выведет 2008/12/08 00:00:00
{$ts|date_format:"%Y/%m/%d %H:%M:%S"} выведет 2008/12/08 00:00:00
```
[Конверсионные указатели](http://docs.php.net/ru/strftime#refsect1-function.strftime-parameters) в модификаторе **date_format**:

View File

@ -22,7 +22,7 @@
Блок указывает фрагмент шаблона, который будет передан родителю. Имя блока должно быть задано явно:
```smarty
{block bk1}content 1{/block}
{block 'bk1'}content 1{/block}
...
{block 'bk2'}content 2{/block}
```