Re: Layout specific helpers

2007-01-14 Thread jitka
function beforeRender() { if ($this-autoLayout is_array($this-helpers)) { switch ($this-layout) { case 'custom_one': $this-helpers = am($this-helpers, array('Menu', 'BreadCrumbs')); break; case 'custom_two':

Layout specific helpers

2007-01-13 Thread biesbjerg
I have certain helpers needed in some layouts - not views - Currently I'm including them in app_controller.php but that seems like a waste of ressources when layouts not using these helpers are rendered. An example could be a menu helper. A menu belongs to the layout - Not the view being