For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > February 2005 > Re: [SMARTY] modifiers









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] modifiers
Monte Ohrt

2005-02-01, 4:01 pm

How do you mean? In your example you are applying a modifier to a
parameter, although you can apply them to functions:

{myfunc|mymod param="foo"}

which is documented on that page too....

Monte

pete M wrote:

> Realised that mofifiers can me applied to functions
>
> eg
> {html_options options=$optins|upper}
>
> Should this ability not go on this manual page ??
>
> http://smarty.php.net/manual/en/language.modifiers.php
>
> just a thought
>
> pete ;-)
>

pete M

2005-02-01, 4:01 pm

What I mean is that in the example below - the modifier works on the
array ;-)

Monte Ohrt wrote:[color=darkred]
> How do you mean? In your example you are applying a modifier to a
> parameter, although you can apply them to functions:
>
> {myfunc|mymod param="foo"}
>
> which is documented on that page too....
>
> Monte
>
> pete M wrote:
>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com