Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'undefined menu' Exception with Cakephp 3.1 beta2 #4

Open
repher opened this issue Aug 13, 2015 · 2 comments
Open

'undefined menu' Exception with Cakephp 3.1 beta2 #4

repher opened this issue Aug 13, 2015 · 2 comments
Labels

Comments

@repher
Copy link

repher commented Aug 13, 2015

Hey!

I know it's stil beta, but i need to upgrad as soon as possible so i tested everything today.

The menu works without any problems on 3.0.11 but after the upgrade the helper doe not find any menus. Everything works until i call the following in my template.

echo $this->Menu->render('menu_left'); 

Error message:

undefined menu

The beforeRender() callback in MenuComponent.php gets called. I also can confirm, that - within the callback method - after setting the menu variable it is set in the ``$event->subject()` but coming back from the callback it is not there anymore ...

Bernhard

@jadb
Copy link
Member

jadb commented Aug 13, 2015

I started some changes here - and the very minimal tests are passing but that checks the variable after the callback.

The 3.1 branch is constantly updated and some changes have been happening to the view layer so without the exact commit and a failing test, I can't really look more into it.

@jadb jadb added the onhold label Aug 13, 2015
@repher
Copy link
Author

repher commented Aug 14, 2015

well thanks! Can you point me at what is changed in the view layer? I just don't get it ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants