Welcome Guest, Not a member yet? Register   Sign In
Load view outside the "views" folder
#7

[eluser]docmattman[/eluser]
I'm keeping all of my views in the application/views folder. But I want the whole thing to be themeable. So if someone creates a theme, they can choose to override one of my view files by putting a file with the same name in the theme/views folder. For this reason, I want to create a "load->themeableview()" function to first check if the file exists in the theme before loading my default one.

Looks like I'll most likely have to extend the loader class to accomplish this.


Messages In This Thread
Load view outside the "views" folder - by El Forum - 06-10-2013, 06:48 PM
Load view outside the "views" folder - by El Forum - 06-10-2013, 10:16 PM
Load view outside the "views" folder - by El Forum - 06-10-2013, 10:57 PM
Load view outside the "views" folder - by El Forum - 06-10-2013, 11:40 PM
Load view outside the "views" folder - by El Forum - 06-11-2013, 06:21 AM
Load view outside the "views" folder - by El Forum - 06-11-2013, 07:29 AM
Load view outside the "views" folder - by El Forum - 06-11-2013, 11:53 AM
Load view outside the "views" folder - by El Forum - 06-11-2013, 01:23 PM
Load view outside the "views" folder - by El Forum - 06-12-2013, 01:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB