HMVC the right way ?! |
(05-28-2015, 12:06 PM)RogerMore Wrote: Thanks guys for your input. I usually set up a MY_Controller in which i make use of $this->load->vars(), to load an array with a set of variables that will be made available for all views. My other controllers will inherit from MY_Controller and the views they load will have access to whatever i loaded on $this->load->vars(). PHP Code: $this->load->vars( Then you can just do PHP Code: $this->load->view('header'); inside your other views. |
Welcome Guest, Not a member yet? Register Sign In |