|
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 |
BRDude Smarty Rookie
Joined: 23 Nov 2003 Posts: 17
|
Posted: Wed Jan 21, 2004 2:45 pm Post subject: overwrite attribute for config_load |
|
|
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. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Jan 23, 2004 8:43 am Post subject: |
|
|
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 |
|
|
|
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
|