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

Smarty delimiter

 
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
chucky
Smarty n00b


Joined: 25 Aug 2003
Posts: 2

PostPosted: Mon Aug 25, 2003 11:59 am    Post subject: Smarty delimiter Reply with quote

Hi,

i read the manual and found that is it possible to change the delimiter, but there are no comments where i can change them.

I want change '{' to '<{' and '}' to '}>', where can i make these changes? I searched in the forum before but cant find any hint.

thanks for any advice

chucky
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Mon Aug 25, 2003 12:14 pm    Post subject: Reply with quote

http://smarty.php.net/manual/en/variable.left.delimiter.php and
http://smarty.php.net/manual/en/variable.right.delimiter.php

set it with
$smarty->left_delimiter = '<{';
$smarty->right_delimiter = '}>';
Back to top
View user's profile Send private message Send e-mail Visit poster's website
andre
Smarty Pro


Joined: 23 Apr 2003
Posts: 164
Location: Karlsruhe, Germany

PostPosted: Mon Aug 25, 2003 12:15 pm    Post subject: Reply with quote

http://www.phpinsider.com/smarty-forum/viewtopic.php?t=345&highlight=delimiter

Oops... messju was faster Razz
Back to top
View user's profile Send private message
chucky
Smarty n00b


Joined: 25 Aug 2003
Posts: 2

PostPosted: Mon Aug 25, 2003 12:34 pm    Post subject: Reply with quote

thx for the fast solution!

is there no way to set them global in config file or something like that? Its not much comfortabel so set them each time.

mfg chucky
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Mon Aug 25, 2003 2:08 pm    Post subject: Reply with quote

do it in your script after "$smarty=new Smarty;" there it has to be done only once (once per request, though).

or do it in the constructor of you smarty-subclass if you followed the example at http://smarty.php.net/manual/en/installing.smarty.extended.php
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