Welcome Guest, Not a member yet? Register   Sign In
Setting up views once, not per controller?
#1

[eluser]carlhussey[/eluser]
I have all these views loading in every controller. All of them are static except in this case, news. That's where the content goes for the current controller its on. Is there any way to set those other views in a file so I dont have to deal with loading them every time?

Code:
$this->load->view('header', $data);
        $this->load->view('top', $data);
        $this->load->view('menu', $data);
        $this->load->view('news', $data); //Only one that changes
        $this->load->view('footer', $data);
#2

[eluser]samitrimal[/eluser]
http://codeigniter.com/wiki/Phil_Sturgeo...e_Library/




Theme © iAndrew 2016 - Forum software by © MyBB