CodeIgniter Forums
Base template for Smarty - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Base template for Smarty (/thread-12056.html)



Base template for Smarty - El Forum - 10-03-2008

[eluser]blaff[/eluser]
Do anyone have a good solution on how to include a base.tpl file with the main structure for the page on.

Because in each function (in the controller files) i will for example write $this->str->display("page.main.tpl"); and then i want this tpl file to be viewed in my base.tpl.

I can write {include file="base.tpl"} in page.main.tpl but how will i send the information in page.main.tpl to a specific place in base.tpl?

Best regards,
Mikael


Base template for Smarty - El Forum - 10-03-2008

[eluser]Tom Schlick[/eluser]
here is what i was talking about before if you still want to take a look at it. i think it does everything you are looking for in smarty

http://ellislab.com/forums/viewthread/92883/