|
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 |
ldrut Smarty Rookie
Joined: 22 Dec 2009 Posts: 11
|
Posted: Sun Jan 17, 2010 12:10 am Post subject: Cold use a default resource plugin |
|
|
Maybe there is a good way to do this, but I am not seeing it.
I have a database-driven application which is configured as namespace:pagename which maps quite nicely into Smarty resource-type:file-name. Unfortunately the namespaces are also defined in the database and are changeable so I can't create static php files to define resource handlers for each one.
What would be nice is if we had a default resource handler which would also have resource-type as an parameter.
$smarty->default_template_handler_func does not really cut the mustard as it does not have the same support for timestamps, compiling, and caching that $smarty->register_resource() does.
Or am I missing something? |
|
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
|