On Friday, March 30, 2012 5:02:21 PM UTC+2, 750riderAce wrote:
Thomas... could you please post waht exactly you have under each directory?I'm using 2.1.1 and I did exactly the same setup that you did, but I'm still
getting the "Helper class MenuBuilderHelper could not be found" errorthis is what I do have:
*app
Plugin
MenuBuilder
Controller ---> Component ---> MenuGathererComponent.php
Test
View ---> helpers ---> MenuBuilderHelper.php*
the line *CakePlugin::load('MenuBuilder');* was added to
*/app/config/bootstrap.php**The code in /app/Controller/Appcontroller.
php*: * var $helpers = array('Form', 'Html', 'MenuBuilder.MenuBuilder');
plus the sample code under beforeFilter() method*
In my default.ctp the following code:*<div id="header">
<?php echo $this->MenuBuilder->build('main-menu'); ?>
</div>*is this exactly what you have?
thanks
750riderAce
--
View this message in context: http://cakephp.1045679.n5.nabble.com/MenuBuilder-doesn- t-work-with-cakephp-2-0-or-2- 1-tp5120624p5606930.html
Sent from the CakePHP mailing list archive at Nabble.com.
On Friday, March 30, 2012 5:02:21 PM UTC+2, 750riderAce wrote:
Thomas... could you please post waht exactly you have under each directory?--I'm using 2.1.1 and I did exactly the same setup that you did, but I'm still
getting the "Helper class MenuBuilderHelper could not be found" errorthis is what I do have:
*app
Plugin
MenuBuilder
Controller ---> Component ---> MenuGathererComponent.php
Test
View ---> helpers ---> MenuBuilderHelper.php*
the line *CakePlugin::load('MenuBuilder');* was added to
*/app/config/bootstrap.php**The code in /app/Controller/Appcontroller.
php*: * var $helpers = array('Form', 'Html', 'MenuBuilder.MenuBuilder');
plus the sample code under beforeFilter() method*
In my default.ctp the following code:*<div id="header">
<?php echo $this->MenuBuilder->build('main-menu'); ?>
</div>*is this exactly what you have?
thanks
750riderAce
--
View this message in context: http://cakephp.1045679.n5.nabble.com/MenuBuilder-doesn- t-work-with-cakephp-2-0-or-2- 1-tp5120624p5606930.html
Sent from the CakePHP mailing list archive at Nabble.com.
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:
Post a Comment