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

Default directory for config_load() function

 
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
sguillory6
Smarty Rookie


Joined: 20 Feb 2006
Posts: 17

PostPosted: Mon Feb 20, 2006 6:27 pm    Post subject: Default directory for config_load() function Reply with quote

If you do not supply an abolute file name for the configuration file in the call to config_load() (or the {config_load} tag), what is the default directory that Smarty will look in?

Thanks,
Stan
Back to top
View user's profile Send private message Send e-mail
boots
Administrator


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

PostPosted: Mon Feb 20, 2006 6:45 pm    Post subject: Reply with quote

just look at line 89 of the Smarty.class.php file -- (hint: it's 'configs' underneath the SMARTY_DIR directory).
Back to top
View user's profile Send private message
sguillory6
Smarty Rookie


Joined: 20 Feb 2006
Posts: 17

PostPosted: Mon Feb 20, 2006 6:54 pm    Post subject: Thanks. Reply with quote

I have it on my list to go look at the Smarty and SmartyValidate source for a number of issues, but just posting to the forum while porting some struts code as things arise until I have time.

Thanks,
Stan
Back to top
View user's profile Send private message Send e-mail
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Feb 20, 2006 7:16 pm    Post subject: Reply with quote

config_load() and {config_load} loads config files from $smarty->config_dir.
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