Strictly speaking, you don't need those helpers for MenuBuilder to work,
but you are overwriting the default helpers array, so any other code in
your view that uses those helpers will cease to work. The alternative is to
push MenuBuilder onto the helpers array in your beforeFilter method.
On Monday, March 12, 2012 9:59:37 AM UTC-4, Thomas wrote:
>
>
> Finally got it to work... What was missing?
>
> Did not know that I have to add "Form" and "Html" Helpers to the $helpers
> array like this:
>
> var $helpers = array('Forms', 'Html', 'MenuBuilder.MenuBuilder');
>
> After reading the documentation several times I finally found this small
> sentence:
>
> "Remember to include the default Html and Form helpers"
>
> Too bad this important piece of information was not more obvious (eg. big
> red letters :-)
>
>
> Am Donnerstag, 8. März 2012 23:38:13 UTC+1 schrieb Rob:
>>
>> You should drop the entire MenuBuilder directory structure into the
>> Plugin directory. That means that the path for the helper class will end up
>> being app/Plugin/MenuBuilder/View/Helper/MenuBuilderHelper.php.
>> Plugins do have to be loaded in your bootstrap file. See
>> http://book.cakephp.org/2.0/en/plugins.html
>>
>>
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php