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

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,

[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


Theme © iAndrew 2016 - Forum software by © MyBB