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


On Tuesday, March 6, 2012 10:12:44 AM UTC-5, Thomas wrote:
>
> On 2 Mrz., 19:59, Rob <rcole...@mailforce.net> wrote: 
> > The 2.0 branch on github does in fact work with 2.1 RC.  The correct 
> > location for the files is app/Plugin/MenuBuilder.  It looks like your 
> > problem is how you're adding it to the helpers array.  The key should be 
> > "MenuBuilder.MenuBuilder", which tells Cake to look in a plugin called 
> > MenuBuilder for a helper also called MenuBuilder. 
>
> Sorry, I still can't get it to work... here is what I did: 
>
> - put the php file into  /app/Plugin/MenuBuilder/MenuBuilderHelper.php 
>
> - added the following to AppController.php: 
>
>             public $helpers = array('MenuBuilder.MenuBuilder'); 
>
>            (plus the "beforeFilter" function as stated in the readme) 
>
> - added 
>
>          <?php echo $this->MenuBuilder->build('main-menu'); ?> 
>
> somewhere in my index.ctp 
>
> But I still keep getting "Helper class MenuBuilderHelper could not be 
> found" 
>
> Do I have to add something to bootstrap.php? 
> Do I have to clear some cache? 
>
> To be honest I'm struggling with the the fact that I'm completely 
> missing the "big picture" and don't understand how all of those 
> subfolders are supposed to be working together :-) 
>
> So far, convention-over-configuration hasn't got me yet ;-)

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to