martinluff Posted February 2, 2011 Posted February 2, 2011 Just noticed the recent GitHub commit: Modified Template class so that the template filename could be changed at runtime (for use by runtime hooks) and looks intriguing... Any chance of some sample code to illustrate how/where this might be used? Thanks in advance
ryan Posted February 3, 2011 Posted February 3, 2011 Hi Martin, I think this is a good example: http://processwire.com/talk/index.php/topic,56.msg443.html#msg443 What we're doing there is hooking in before a page is rendered, and changing the template filename to one in the AdminBar modules directory. Let me know if this makes sense, or if I can provide another example? Thanks, Ryan
martinluff Posted February 7, 2011 Author Posted February 7, 2011 Thanks Ryan, OK I see how that could be used
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now