Array in modifier

From: Date: Fri, 14 Nov 2003 14:15:01 +0000
Subject: Array in modifier
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10539@lists.php.net to get a copy of this message
Hi All, Is there a trick to pass an array to a modifier ? I've wrote this modifier function (and put it in my plugins directory) : function smarty_modifier_join($array, $glue = ', ') { return implode($glue, (array)$array); } Now, i have this array $myArray= array('One', 'Two', 'Blabla'); $smarty->assign('myArray', $myArray); and this template {$myArray|join:" | "} I espect to got an ouput like this: One | Two | Blabla But i got this: Array What am i doing wrong ? Ps.: I use 2.6 RC2 Regards, Rémy Dufour

« previous php.smarty.general (#10539) next »