Welcome Guest, Not a member yet? Register   Sign In
Site template
#1

[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?
#2

[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.
#3

[eluser]ELRafael[/eluser]
Or use this one
http://maestric.com/doc/php/codeigniter_template

I'm using and it's very very good!!




Theme © iAndrew 2016 - Forum software by © MyBB