I have not run into this problem and I use a mix of routes (some regex, some
static, some mvc).

What I noticed has helped is specifying the route "default" for all
navigation pages that use the default route. So your first navigation page
would look more like this:

$pages = array(
    array(
        'label'      => 'home',
        'controller' => 'index',
        'action'     => 'index',
        'route'      => 'default'
    ),
    /* ... */
);

Zend_Navigation doesn't assume the "default" route when it is omitted from
the navigation page -- instead, it acts like the url() view helper and uses
the current page's matched route.

I'm not sure if this will fix your problem but it might help.

--
Hector


On Fri, Jul 2, 2010 at 7:37 AM, jsuggs <[email protected]> wrote:

>
> I've asked the same thing before.  I reported the issue, but was told
> either
> choose all MCV routes or none.  Hopefully this can be "fixed" in ZF2 as I
> still think it an open issue, and one that could (somewhat) easily be
> solved.
>
> http://framework.zend.com/issues/browse/ZF-7746
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Active-page-with-Routers-tp2276057p2276529.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

Reply via email to