custom functions doesn't seem to pass variables

From: Date: Sat, 22 Dec 2001 12:09:39 +0000
Subject: custom functions doesn't seem to pass variables
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2371@lists.php.net to get a copy of this message
Hi all! I have played and read about the custom functions. Somehow it doesn't seem to pass variables. I have tried a lot of different combination, it always send back the word "Array" when I try to echo the value. My function works well since an "inside" echo with a string will be displayed from this custom function. It just doesn't have variable content when it's pass as an argument: /*======================================================================*\ Function: smarty_func_cast_content Purpose: function to register cast pointers for a given page \*======================================================================*/ function smarty_func_cast_content($attribute) { $attribute.=$attribute; echo $atribute; echo "echo attribute: ".$attribute; return $attribute; } Thanks, Francois

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