[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-dev
Subject: [SMARTY-DEV] function return vals
From: Monte Ohrt <monte () ispi ! net>
Date: 2002-12-19 17:52:54
[Download RAW message or body]
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>
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic