|
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 |
mzanier_XTC Smarty Regular
Joined: 04 May 2003 Posts: 38
|
Posted: Sun Aug 24, 2003 8:08 am Post subject: assign variable only 1 time in smarty class ? |
|
|
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 |
|
tiberian Smarty Rookie
Joined: 19 Aug 2003 Posts: 5 Location: Germany, Wadersloh
|
Posted: Mon Aug 25, 2003 4:37 pm Post subject: |
|
|
if you use $smarty->get_config_vars your variable is global ... look at the FAQ for details |
|
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
|