cakephp_menu_component icon indicating copy to clipboard operation
cakephp_menu_component copied to clipboard

Fatal error on View missing

Open pkirk opened this issue 13 years ago • 1 comments

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 avatar May 31 '11 10:05 pkirk

@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

sams avatar Jul 10 '11 22:07 sams