Wednesday, May 23, 2012

redefine Helper settings in plugin

Hi all

i have an app with a plugin. The app uses a "MenuHelper" that builds a secondary menu based on an array of settings.

this is my standard menu, defined in AppController:
public $helpers = array("Menu" => array("choice 1", "choice 2", "choice 3"));

and this should be the menu in Plugin. (this line of code is in my PluginAppController)
public $helpers = array("Menu" => array("drawings", "3d models", "schemes")); 

i expected the $helpers array to be overridden but i get a 6-choices menu.
how can i override the original helper settings?


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: