Site template - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Site template (/showthread.php?tid=32739) |
Site template - El Forum - 08-03-2010 [eluser]tzi0[/eluser] I have a template for my site. It consists of 3 blocks: header.php footer.php and content.php (they are views). How to use them everywhere on my site? Have i to type like $this->load->view("header"), same to footer and content views each time i create a new controller? Is there other way? Site template - El Forum - 08-03-2010 [eluser]pickupman[/eluser] You can read more about the _output() function in the [url="http://ellislab.com/codeigniter/user-guide/general/controllers.html"]user guide[/url]. It allows you to control the output of the controller. Site template - El Forum - 08-03-2010 [eluser]ELRafael[/eluser] Or use this one http://maestric.com/doc/php/codeigniter_template I'm using and it's very very good!! |