• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.