Welcome Guest, Not a member yet? Register   Sign In
Setting views globally
#1

[eluser]GeXus[/eluser]
Is it possible to set a global view template?

So for example, the site I'm working on has a header, navigation, body, and footer.

Is there a way to not have to load these within each function or page that uses them?
#2

[eluser]pickupman[/eluser]
There are several template libraries out there, but I have been using the one linked in my signature. It was simple enough to setup, and was easy to implement yet still have good flexibility. With it you create a simple html file with regions header/menu/content/sidebar/footer defined. In your your controller you assign a view to a section like content/sidebar, and the template library puts it all together.
#3

[eluser]TheIgniter[/eluser]
I like the phil sturgeon's template library when dealing with modules!

Code:
http://philsturgeon.co.uk/code
http://codeigniter.com/wiki/codeigniter-template/




Theme © iAndrew 2016 - Forum software by © MyBB