Welcome Guest, Not a member yet? Register   Sign In
Base template for Smarty
#1

[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
#2

[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/




Theme © iAndrew 2016 - Forum software by © MyBB