Welcome Guest, Not a member yet? Register   Sign In
Changing the Default View Directory
#11

[eluser]George36[/eluser]
Cheers for all of this folks, that all really helps.

I'm refitting a set of food ordering sites for a client where they all share the same code and database, but each pseudo site can have its own design and menus:

www.gourmetkebabs.com
www.thepennycook.com


The concept I am working to is to have a default theme (where views will be in the default folder) but also to allow custom templates (i will have a new template folder in the root). This will be controlled via config settings stored in the db (driven by the URL).

The deal with changing the default view path is that I want to be able to give the theme designer control over views if required. The logic will be that when a load->view is called, the system will first check to see if the view exists in templates>ThemeName>views, if it doesn't it will load the default view.

If anyone is interested, I'll post the code for this when I'm done.

Once again, thanks to all for the help and insight. Much appreciated.

Greetings from Scotland

George
#12

[eluser]KingSkippus[/eluser]
[quote author="clip" date="1279569492"]MY_Loader will still work with ci2.0, but you have to place it in the "application/core" folder instead of the usual "application/libraries" folder[/quote]

Awesome, that's extremely helpful. Thanks for the info!




Theme © iAndrew 2016 - Forum software by © MyBB