1

I have a route:

resources.router.routes.page.route = "page/:page"
resources.router.routes.page.defaults.module = "core"
resources.router.routes.page.defaults.controller = "page"
resources.router.routes.page.defaults.action = "view"
resources.router.routes.page.defaults.page = "home"

Here is my navigation xml:

<company>
    <label>Company</label>
    <route>page</route>
    <page>company</page>
</company>

As you can see here, Id like to use my route (and use the page variable) within my zend navigation xml. The problem is, the page element isn't being used. The result becomes:

http://localhost/website/public/page

instead of

http://localhost/website/public/page/company

How can I get zend navigation to use the page parameter?

Thanks!

1
  • I figured it out. You need to wrap the page element within a params element Commented May 11, 2012 at 23:35

1 Answer 1

1

You need to wrap the page element within a params element. See as follows:

<company>
    <label>Company</label>
    <route>page</route>
    <params>
       <page>company</page>
    </params>
</company>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.