function return vals

From: Date: Thu, 19 Dec 2002 17:52:54 +0000
Subject: function return vals
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-460@lists.php.net to get a copy of this message
btw, functions (and block functions) now support return values. This way you can futher process the data generated by the function. Echo still works, but you can't do things like apply a modifier to a function's output. I will go through and update all the plugins in the distribution to reflect this new method. So, instead of: smarty_function_foo($param, $content, &$smarty) { echo "my content"; } You do this: smarty_function_foo($param, $content, &$smarty) { return "my content"; } Monte -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.dev (#460) next »