Templating with Code Igniter |
[eluser]fesweb[/eluser]
Here's a simplified version of what I've just (finally) arrived at... Master template (views/templates/master_page): Code: <html> In whatever controller you are working with: Code: // get some data This is undocumented on the "Views" page of the user guide, but I learned (afterward) that it's covered on the loader page. You can do this with as many sections as you like, and load different master pages depending on your needs (ex: templates/master_2column, templates/master_3column, etc). Master: Code: <html> Code: $data = $some_query->result(); Hope that helps. |
Messages In This Thread |
Templating with Code Igniter - by El Forum - 08-19-2008, 09:56 PM
Templating with Code Igniter - by El Forum - 08-19-2008, 11:32 PM
Templating with Code Igniter - by El Forum - 08-21-2008, 05:33 PM
Templating with Code Igniter - by El Forum - 08-22-2008, 07:47 AM
Templating with Code Igniter - by El Forum - 08-22-2008, 07:56 AM
Templating with Code Igniter - by El Forum - 08-22-2008, 08:01 AM
Templating with Code Igniter - by El Forum - 08-22-2008, 11:01 AM
|