nested functions with register_function - help
| From: | Max Clark | Date: | Thu, 19 Dec 2002 04:16:35 +0000 |
| Subject: | nested functions with register_function - help | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6888@lists.php.net to get a copy of this message | ||
Hi-
I have registered a function with smarty that exists within php. It is a
function that formats the display of the output.
How do I write this template? Below is my current code.
Thanks in advance,
-Max
in php:
$smarty->register_function("adj_int_number", "adj_int_number");
in the template:
{adj_int_number {$domains[domain_idx].count}}