cgsimplesmarty in UDT
Posted: Tue Mar 19, 2013 6:34 pm
Hi, im trying to use CG Smarty in a UDT, but with even the most simple things i get syntax error?
I tried using a example from the help page from cg simple smarty:
But i get:
I tried using a example from the help page from cg simple smarty:
Code: Select all
{cgsimple::get_children('',0,'children')}
{if count(\$children)}
{foreach from=\$children item='child'}
{if \$child.show_in_menu}
Child: id = {\$child.id} alias = {\$child.alias}<br/>
{/if}
{/foreach}
{/if}
Code: Select all
Invalid code entered.
Parse error: syntax error, unexpected '}' in /hsphere/local/home/clublust/*******.dk/_work/julefest/admin/adduserplugin.php(100) : eval()'d code on line 1