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

assign variable only 1 time in smarty class ?

 
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
mzanier_XTC
Smarty Regular


Joined: 04 May 2003
Posts: 38

PostPosted: Sun Aug 24, 2003 8:08 am    Post subject: assign variable only 1 time in smarty class ? Reply with quote

hi,

is it possible that i can assign a variable (lets call it {$Path} ) only 1 time ?
$path should contain an config value from my config file (like 'http://www.yoursite.com/your_installfolder/templates/current_template/...."

normaly i have to assign it to each template, but is there a solution where i can define those vars "global" to the template engine ?

thanks,
mario
nextcommerce.org
_________________
[quote]
http://www.xt-commerce.com
Back to top
View user's profile Send private message Visit poster's website
tiberian
Smarty Rookie


Joined: 19 Aug 2003
Posts: 5
Location: Germany, Wadersloh

PostPosted: Mon Aug 25, 2003 4:37 pm    Post subject: Reply with quote

if you use $smarty->get_config_vars your variable is global ... look at the FAQ for details
Back to top
View user's profile Send private message 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