Welcome Guest, Not a member yet? Register   Sign In
Setting up a dynamic menu in CI
#2

[eluser]Derek Allard[/eluser]
Just to restate, you want a way to have a common header, menu and footer across every page, but the "body" or content of the page to be different?

There are a few different ways to do this, but the easiest way is probably to call a view from your view
Code:
<?php
$this->load->view('header');
$this->load->view('menu');
?>

... content of each page goes here...

<?php
$this->load->view('footer');
?>


Messages In This Thread
Setting up a dynamic menu in CI - by El Forum - 07-25-2009, 10:20 PM
Setting up a dynamic menu in CI - by El Forum - 07-26-2009, 05:50 AM
Setting up a dynamic menu in CI - by El Forum - 07-26-2009, 05:57 AM
Setting up a dynamic menu in CI - by El Forum - 07-26-2009, 06:00 AM
Setting up a dynamic menu in CI - by El Forum - 07-26-2009, 06:17 AM
Setting up a dynamic menu in CI - by El Forum - 07-26-2009, 06:40 AM
Setting up a dynamic menu in CI - by El Forum - 07-26-2009, 09:48 AM
Setting up a dynamic menu in CI - by El Forum - 07-26-2009, 11:49 AM
Setting up a dynamic menu in CI - by El Forum - 07-26-2009, 09:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB