-
Подскажите, так и должно быть?
``` php
$fenom->addAccessor('array', function (Fenom\Tokenizer $tokens) {
return array('key' => 'val');
});
```
``` php
{$.array.key}
```
На выходе получаем:
`…
-
Catchable fatal error: Argument 1 passed to Fenom\Render::display() must be of the type array, string given, called in ...
Передается имя шаблона, вместо массива.
``` php
$this->getTemplate($templa…
-
Возможно ли при формировании исключения получить информацию о файле шаблона и номере строки?
Fenom/Template.php(454) : eval()'d code on line 88
PHP Parse error: syntax error, unexpected '(' in
-
Попробовал работу с дополнительными провайдерами. Заметил, что при использовании флага Fenom::AUTO_RELOAD возникает ошибка в методе isValid() класса Render:
Notice: Undefined offset: 0 in Fenom/Rende…
-
`\T_BREAK` defined twice.
See: https://github.com/bzick/fenom/blob/master/src/Fenom/Tokenizer.php#L85-L86
macik updated
9 years ago
-
Случайно заметил, что работают модификаторы при работе с массивами:
{$array|key} {$array|reset} {$array|current} {$array|end} {$array|prev} {$array|next} и, скорее всего, еще какие-то. Очень кстати ок…
-
Наткнулся на хабре в коментариях про феном на кусок холивара "шаблонизатор vs голый пхп", где коментатор привел небольшую статистику что у него голый пхп в 2 раза быстрее чем феном.
На что Иван ответ…
-
Подскажите, возможно ли многоуровневое наследование с использованием {extends}, {block} и {parent}?
Например, три шаблона:
``` html
{* root.tpl *}
{block 'header'}
root header
{/block}
```
``` html
…
-
-
Всё-таки есть проблема, сейчас попробую описать.
В прошлый раз я говорил что у меня два раза прогоняется код.
То есть имеется общий шаблон в который внедряется кусок сварганеный функцией fetch.
Напр…