Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

feature/tutorials.navigations.rst #722

Closed
wants to merge 9 commits into from
Closed

feature/tutorials.navigations.rst #722

wants to merge 9 commits into from

Conversation

GeeH
Copy link
Contributor

@GeeH GeeH commented Mar 12, 2013

Added new tutorial that explains how to add Zend\Navigation to the basic Album app.

@@ -0,0 +1,236 @@
Using Zend Navigation in your Album module
Copy link
Member

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'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@Freeaqingme
Copy link
Member

Review complete. Really nice addition to the docs!

@GeeH
Copy link
Contributor Author

GeeH commented Mar 13, 2013

Thanks for the comprehensive review, apologies for the lack of proof reading after conversion. This is good to review again now Freeqy.

@GeeH
Copy link
Contributor Author

GeeH commented Mar 13, 2013

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.

@froschdesign
Copy link
Member

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();

@GeeH
Copy link
Contributor Author

GeeH commented Mar 13, 2013

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.

@froschdesign
Copy link
Member

Neither of these will work for breadcrumbs, the only way breadcrumbs work is to pass the container to the breadcrumbs method.

2.1.4 is around the corner: zendframework/zendframework#3991

@GeeH
Copy link
Contributor Author

GeeH commented Mar 13, 2013

So your saying I should write this for a version that isn't released just yet?

@GeeH
Copy link
Contributor Author

GeeH commented Mar 13, 2013

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.

@GeeH
Copy link
Contributor Author

GeeH commented Mar 13, 2013

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

@froschdesign
Copy link
Member

@Spabby
Please look at my previous comment with the link to #3991!

@GeeH
Copy link
Contributor Author

GeeH commented Mar 13, 2013

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.

@GeeH
Copy link
Contributor Author

GeeH commented Mar 13, 2013

Standardised on $this->navigation('container')... thanks again for the feedback.

weierophinney added a commit that referenced this pull request Mar 14, 2013
weierophinney added a commit that referenced this pull request Mar 14, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants