Welcome Guest, Not a member yet? Register   Sign In
how can Multiple Template Directories system
#4

[eluser]Phil Sturgeon[/eluser]
The last post covered management but not implementation. I remember thinking at the time that may have only been half the picture.

This is the recreated basics, I obviously have this all coded up much nicer.

Code:
$this->load->view('../assets/themes/'.$this->settings->item('default_theme').'/views/layout.php', $data);

Obviously here I am using a my settings library to get the name of the theme we stored in the database before. I use a single layout.php instead of header/footer and pass the page body as a string to this file.

Let me know if you need more!


Messages In This Thread
how can Multiple Template Directories system - by El Forum - 09-26-2008, 04:46 AM
how can Multiple Template Directories system - by El Forum - 09-26-2008, 09:12 AM
how can Multiple Template Directories system - by El Forum - 09-27-2008, 01:03 AM
how can Multiple Template Directories system - by El Forum - 09-27-2008, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB