CodeIgniter Forums
Base template for Smarty - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Base template for Smarty (/thread-12056.html)

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

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,

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