-
Notifications
You must be signed in to change notification settings - Fork 568
Conversation
@@ -0,0 +1,236 @@ | |||
Using Zend Navigation in your Album module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd propose to either add a backslash between 'Zend' and 'Navigation', or change it to 'Adding navigation to your Album Module'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Review complete. Really nice addition to the docs! |
Thanks for the comprehensive review, apologies for the lack of proof reading after conversion. This is good to review again now Freeqy. |
I can't agree with that change, I'm aiming for consistency, it's confusing to have to define the key in navigation() for menu, and in the breadcrumb method for breadcrumbs, this way it's consistent across both helpers. |
??? You can use: echo $this->navigation('navigation')->menu();
echo $this->navigation()->breadcrumbs(); or echo $this->navigation('navigation')->menu();
echo $this->navigation('navigation')->breadcrumbs(); |
Neither of these will work for breadcrumbs, the only way breadcrumbs work is to pass the container to the breadcrumbs method. This is why I'm passing the container name to the method in both breadcrumbs and menu. At the moment, it's at least consistent. |
2.1.4 is around the corner: zendframework/zendframework#3991 |
So your saying I should write this for a version that isn't released just yet? |
Yep, I saw it, it doesn't change the point that as is, your proposed change won't work on the production version of ZF2. |
Is there a fix for this in 2.1.4? I may be being stupid but I can't see one looking at the history of the helpers :o |
@Spabby |
I really should not be so snappy with people who are trying to be helpful, please accept my apologies, bad day. I will hold this PR to be merged until 2.1.4 and update the code accordingly once I've tested it :) Thanks for the feedback. |
Standardised on $this->navigation('container')... thanks again for the feedback. |
feature/tutorials.navigations.rst
Added new tutorial that explains how to add Zend\Navigation to the basic Album app.