Welcome Guest, Not a member yet? Register   Sign In
header/footer
#4

(11-24-2016, 03:22 PM)eagle00789 Wrote: I am currently building my app using the great codeigniter framework, but i find 1 thing a bit annoying.
Every time i load my views, i also need to loead my header and footer views. Is there any way to always load those 2 views before and after my custom view?

Curently i use the below code to load my own view surrounded by myheader and footer:


PHP Code:
            $this->load->view('templates/header'$data);
            
$this->load->view('templates/menu'$menu);
            
$this->load->view('about/create_change'$data);
            
$this->load->view('templates/footer'); 

This works fine for me: http://jeromejaglale.com/doc/php/codeigniter_template
Reply


Messages In This Thread
header/footer - by eagle00789 - 11-24-2016, 03:22 PM
RE: header/footer - by ciadmin - 11-24-2016, 07:23 PM
RE: header/footer - by rupamhazra - 11-25-2016, 11:32 PM
RE: header/footer - by BabalooAye - 11-26-2016, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB