markstory / cakephp_menu_component

A component that generates dynamic DbAcl based menus. Works with AcoExtrasShell
44 stars 13 forks source link

Fatal error on View missing #1

Open pkirk opened 13 years ago

pkirk commented 13 years ago

Mark, the component gives a Fatal error when we request a page that is missing its view.

Fatal error: Call to a member function set() on a non-object in /home/username/public_html/appname/app/plugins/acl_menu/controllers/components/menu.php on line 420

I don't think this is a real problem, as a view should be present for the relative controller, but I think that a small check can help if it can be done easily.

I'll do it myself if I find the time.

Thanks for your work.

sams commented 13 years ago

@pkirk I have updated the plugin for 1.3 and fixed the tests too line 420 the comp beforeRender see if the following works for you https://github.com/sams/cakephp_menu_component/commit/8935769e53504c11e811978ef892082ba713da44#L1R419