Site template |
[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?
[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.
[eluser]ELRafael[/eluser]
Or use this one http://maestric.com/doc/php/codeigniter_template I'm using and it's very very good!! |
Welcome Guest, Not a member yet? Register Sign In |