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

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?

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.

I like the phil sturgeon's template library when dealing with modules!


Theme © iAndrew 2016 - Forum software by © MyBB