Re: [SMARTY] nested functions with register_function - help
| From: | Max Clark | Date: | Thu, 19 Dec 2002 17:06:29 +0000 |
| Subject: | Re: [SMARTY] nested functions with register_function - help | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6896@lists.php.net to get a copy of this message | ||
Thanks! That did the trick.
"Jason Sweat" <sweatjejm@mchsi.com> wrote in message
news:000c01c2a722$19626280$650aa8c0@sweat.d2g.com...
> 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}}
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>