![]() |
How to add sidebar? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to add sidebar? (/showthread.php?tid=17409) |
How to add sidebar? - El Forum - 04-03-2009 [eluser]Sein Kraft[/eluser] I'm not using the template library and a iwant to know if i can put a sidebar. If not someone can put a simple example how to add a sidebar? Regards, Sein Kraft. How to add sidebar? - El Forum - 04-03-2009 [eluser]slowgary[/eluser] I don't think this has anything to do with CodeIgniter. If you're not sure how to create a 'sidebar' as you call it, you should probably do some research on CSS floats (and CSS in general). What exactly is your definition of a sidebar? How to add sidebar? - El Forum - 04-04-2009 [eluser]Mushex Antaranian[/eluser] As I understand, you want to put sidebar in every page (or many pages) of your site and call it only once. Try to use this structure Your views folder structure views/index.php views/header.php views/footer.php views/sidebar.php views/some_page.php where index.php is your master view and looks like this Code: <?php .. and your controller will look like this Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Wish it will help you ![]() |