SugarNewsWikiDocsBugsForumFilesSource LoginRegister
HomeBugsBug #0019
layout specification is awkward
Bug #0019
Reported by Sean Middleditch
Apr 29th, 2010 at 8:58pm PDT
I don't like having it be an extra parameter to Fetch/Display. Perhaps set it as an method option e.g. setLayout('foo.tpl').

Also consider adding a {% layout 'foo.tpl' %} to the language to allow the display logic to be fully contained within the templates.

Comment from Sean Middleditch
Aug 24th, 2010 at 9:53am
Shawn Pearce implemented an inherit syntax, similar to what Smarty 3 uses, and checked it into SVN.

Additional Comments:
or Login