Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

use several modifier on the same variable

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Ze
Smarty Rookie


Joined: 13 Jun 2003
Posts: 5
Location: Rennes, France

PostPosted: Wed Jul 02, 2003 3:11 pm    Post subject: use several modifier on the same variable Reply with quote

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 Smile
Ex:
PHP
Code:
$var = "HeLLO wOrLD !";

*.tpl
Code:
${var|capitalize:"forcelower"}

OUTPUT:
Hello World
_________________
--
Yann RICHARD
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Jul 02, 2003 3:20 pm    Post subject: Re: use several modifier on the same variable Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP