|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Ze Smarty Rookie
Joined: 13 Jun 2003 Posts: 5 Location: Rennes, France
|
Posted: Wed Jul 02, 2003 3:11 pm Post subject: use several modifier on the same variable |
|
|
Hi,
I have try to do something like this:
Code: | {$var|lower|capitalize} |
But This don't work ... Is there a way to do this without assign a new variables with the first result and apply the second modifier on it ?
If there is no way, I think option on modifier captitalize will be a good think
Ex:
PHP
Code: | $var = "HeLLO wOrLD !"; |
*.tpl
Code: | ${var|capitalize:"forcelower"} |
OUTPUT:
Hello World _________________ --
Yann RICHARD |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Jul 02, 2003 3:20 pm Post subject: Re: use several modifier on the same variable |
|
|
Ze wrote: | Hi,
I have try to do something like this:
Code: | {$var|lower|capitalize} |
But This don't work ... |
it works fine for me. with smarty version 2.2.0 till 2.5.0 and latest cvs (that is all versions available at smarty.php.net) |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|