Thursday 11 September 2003 7:39:45 am
Im playing with the new template operators in 3.2 and have become a little stuck with 'explode'. I was of the opinion that i could let through php functions via the template.ini file, then i noticed the lib file 'eztemplatearrayoperator.php' has the explode operator defined within it. But i can't seem to get it to work. Im trying to use similar syntax as the php function but all i seem to get are array_slice errors... For example:
{let test="explode,test"|explode(",")}
{section loop=$test}
Item is:{$:item}
{/section} {/let} This gives the error: array_slice(): The first argument should be an array in /var/www/html/3_2/lib/eztemplate/classes/eztemplatearrayoperator.php on line 441 I think i must be using the operator in a wrong way. How do i use it? Paul
|