Welcome Guest, Not a member yet? Register   Sign In
Header and footer
#2

[eluser]Phil Sturgeon[/eluser]
This is what most CI developers do. I myself made a nice little library which extends the parser but there are easier methods.

Make a library with a few functions, title() can set the page title, wrap(true/false) to say if you want the headers/footers and create() which has the same options as load->view(). Give it filename, data and return or output.

Then when you have a snazzy little library you can add crazy things like dynamic title generation (works it out from class and method names) and add blocks, default variables, user data, etc. Will save you lots of time to do this, give me a shout if you want mine.


Messages In This Thread
Header and footer - by El Forum - 07-13-2007, 01:33 PM
Header and footer - by El Forum - 07-17-2007, 05:32 PM
Header and footer - by El Forum - 07-18-2007, 05:44 AM
Header and footer - by El Forum - 07-18-2007, 12:42 PM
Header and footer - by El Forum - 07-19-2007, 09:14 PM
Header and footer - by El Forum - 07-20-2007, 07:15 AM
Header and footer - by El Forum - 07-20-2007, 07:38 AM
Header and footer - by El Forum - 07-20-2007, 09:10 AM
Header and footer - by El Forum - 07-23-2007, 06:11 AM
Header and footer - by El Forum - 07-27-2007, 03:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB