Welcome Guest, Not a member yet? Register   Sign In
Please help me coding static page
#4

[eluser]pickupman[/eluser]
If it's not a lot of links, just hard code them in a view, and then have "different" pages view call the sidebar. One way to do this is name files in /views like sidebar_different.php for controller different.php. You can use uri segements like:
Code:
//In sidebar of view
$controller = $this->uri->segment(1,'welcome');
$this->load->view('sidebars/sidebar_'.$controller, $data);

If you have a lot of links, you will need to create a routine in your model, to fetch pages by a controller name, and build the links dynamically.


Messages In This Thread
Please help me coding static page - by El Forum - 06-29-2010, 12:36 AM
Please help me coding static page - by El Forum - 06-29-2010, 04:18 AM
Please help me coding static page - by El Forum - 06-29-2010, 06:34 AM
Please help me coding static page - by El Forum - 06-29-2010, 07:00 AM
Please help me coding static page - by El Forum - 06-29-2010, 11:33 AM
Please help me coding static page - by El Forum - 06-29-2010, 12:00 PM
Please help me coding static page - by El Forum - 06-29-2010, 12:04 PM
Please help me coding static page - by El Forum - 06-29-2010, 12:58 PM
Please help me coding static page - by El Forum - 07-01-2010, 04:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB