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

Cold use a default resource plugin

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


Joined: 22 Dec 2009
Posts: 11

PostPosted: Sun Jan 17, 2010 12:10 am    Post subject: Cold use a default resource plugin Reply with quote

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
View user's profile Send private message
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