Welcome Guest, Not a member yet? Register   Sign In
using views from a themes folder
#4

[eluser]esra[/eluser]
You can extend the Loader library (create a MY_Loader.php) and overload the view method to scan through additional directories. As far as CI is concerned, a view is a view regardless if it is a template, partial, or empty view fragment. CI looks for views in the application/views/ or in whatever application directory you specify in index.php. I posted some view method changes to load templates from application/templates/ and partials from application/blocks/. See if you can find the Modular Separation 2.4.1 thread. I believe the code was posted there. The code may be stale since it was for CI 1.5.4, but it should work with 1.6.x.


Messages In This Thread
using views from a themes folder - by El Forum - 04-04-2008, 01:40 AM
using views from a themes folder - by El Forum - 04-04-2008, 03:36 AM
using views from a themes folder - by El Forum - 04-04-2008, 09:32 AM
using views from a themes folder - by El Forum - 04-04-2008, 01:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB