Re: [SMARTY] nested functions with register_function - help

From: Date: Thu, 19 Dec 2002 05:47:20 +0000
Subject: Re: [SMARTY] nested functions with register_function - help
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6890@lists.php.net to get a copy of this message
Max, You probably just want to make it a variable modified so that you can do {$domains[domain_idx].count|adj_int_number} see http://smarty.php.net/manual/en/plugins.modifiers.html HTH, Jason "Max Clark" <max@clarksys.com> wrote in message news:atrh6b$10o$1@main.gmane.org... > 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}}

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