cakephp_menu_component
cakephp_menu_component copied to clipboard
Fatal error on View missing
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.
@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