Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

default function for all variables

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
BenFromTokyo
Smarty Rookie


Joined: 15 Oct 2004
Posts: 12
Location: Japan

PostPosted: Fri Oct 15, 2004 4:07 am    Post subject: default function for all variables Reply with quote

Hi,
I would like to use nl2br with all my variables in my template.
Is there a way to do this ?
Thanks for your help,
Ben
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri Oct 15, 2004 4:28 am    Post subject: Reply with quote

http://smarty.php.net/manual/en/variable.default.modifiers.php
Back to top
View user's profile Send private message
BenFromTokyo
Smarty Rookie


Joined: 15 Oct 2004
Posts: 12
Location: Japan

PostPosted: Fri Oct 15, 2004 5:45 am    Post subject: Thanks ! Reply with quote

It works great !
_________________
Ben
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development 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