Welcome Guest, Not a member yet? Register   Sign In
One header in all controllers
#2

[eluser]jairoh_[/eluser]
you should have another view that loads the header, footer and the content you want to view.

ex.

controller
Code:
$data [ 'content' ] = 'name of the view you wan to display in between' ;
$this->load->view( 'my_view', $data );

my_view
Code:
$this->load->view('header', $data);
$this->load->view( $content );
$this->load->view('footer');


Messages In This Thread
One header in all controllers - by El Forum - 05-25-2013, 03:49 PM
One header in all controllers - by El Forum - 05-25-2013, 05:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB