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

overwrite attribute for config_load

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
BRDude
Smarty Rookie


Joined: 23 Nov 2003
Posts: 17

PostPosted: Wed Jan 21, 2004 2:45 pm    Post subject: overwrite attribute for config_load Reply with quote

I think it would be useful to add an "overwrite" attribute so one can choose to config_load a specific config file with overwrite set to FALSE instead.

Another simple solution would be setting $smarty->conf_obj->overwrite = $smarty->overwrite every time config_load is used (instead of only the first time a config is loaded). It's a very easy fix.

I use config_load with overwrite=FALSE to generate FAQ pages from config files. The way I solved it here was by adding a function.config_load2.php with these small changes, but I'd appreciate this feature in future releases. Smile
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Fri Jan 23, 2004 8:43 am    Post subject: Reply with quote

this would be easy to add, but i wonder if the call to {config_load} is the right place for such a thing.

in most cases the config-file itself knows best if it should be handled with config_overwrite or not, not?

wouldn't it be better if one is able to say inside the config-file if he wants to append or overwrite?
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 -> Feature Requests 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