-
Ошибка в логах и не работает Fenom
```
(ERROR @ /core/components/pdotools/model/fenom/Fenom/Template.php : 462) PHP warning: sprintf() [function.sprintf]: Too few arguments
(ERROR @ /index.php) Fatal…
-
Template engine integration
-
I am trying to make a full Fenom chunk for pdoResources output, this is my pdoResources call:
```
[[pdoResources?
&parents=`0`
&limit=`1`
&includeTVs=`first-image,portals`
&tvPrefix=…
-
Since using Fenom templates the MODX Error Log now has many occurrences of this:
```
[2015-08-31 17:06:56] (ERROR @ /index.php) Unexpected token ',' in 3b510f939b78b6681b55cde64b345228 line 76, near …
-
Is it possible to use the standard [MODX output modifiers](https://rtfm.modx.com/revolution/2.x/making-sites-with-modx/customizing-content/input-and-output-filters-%28output-modifiers%29) on the Fenom…
-
вот пример кода который скорее всего не совсем правильный так как одна и таже функци проверяется n-ое количество раз, и равно кол-ву вызывов в шаблоне.
-
После создания объекта fenom добавляю новую переменную:
$fenom->addAccessor('site_name', function (Fenom\Tokenizer $tokens) { return 'Адрес сайта'; });
Все хорошо, но вывод из шаблона {$.site_name} вы…
-
$fenom -> addAccessor('site_name', function (Fenom\Tokenizer $tokens) { return 'echo 'Адрес сайта';'; });
Проблема не решилась((
Parse error: syntax error, unexpected T_ECHO in /classes/Fenom/Templa…
-
How about following example:
```
×
```
But fenom cries about:
```
Unexpected token ':' in xxx/list.fenom.php line 32, near '{"message":'
-
Не работает вызов внутри чанка "tpl" вызов плейсхолдера {$total}, хотя, если рядом вызвать так:[[+total]] - все ок. Причем плейсхолдер {output} - работает.
Пример:
```
'tplWrapper' => '@INLINE {$o…