CodeIgniter Forums
How do you guys set up your header, footer, and/or sidebar views? - 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 do you guys set up your header, footer, and/or sidebar views? (/showthread.php?tid=45361)



How do you guys set up your header, footer, and/or sidebar views? - El Forum - 09-18-2011

[eluser]skcin7[/eluser]
Hello all. I was wondering how you set up your header, footer, and/or sidebar views in your applications. In mine, I only have a header and a footer. I don't use a sidebar. The method I am currently using is to keep them in a subfolder called "includes" and then call them from a template view, which I got from following this video:

http://www.youtube.com/watch?v=gvGymDhY49E

This method works pretty well although I know it is not the only way to do something. I am new to CodeIgniter and was wondering what methods you guys use to include a header, footer, and/or sidebar (or any others you may use). I guess I'm essentially asking about how you set up your template for a page.