[fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Cameron
Hi everyone, I've got an unusual issue with Zend_Navigation that seems like it should work correctly, but isn't. Here's a basic example of the config... nav home labelHome/label controllerindex/controller actionindex/action /home

Re: [fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Hector Virgen
It helps to specify the route because Zend_Navigation uses the current route to create the url instead of the default route. So your navigation should look more like this: home labelHome/label controllerindex/controller actionindex/action

Re: [fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Cameron
Ahh ok, thanks, that works. But if there's no route in either the request or the config it defaults to... breaking the URLs? On Mon, Feb 22, 2010 at 2:24 PM, Hector Virgen djvir...@gmail.com wrote: It helps to specify the route because Zend_Navigation uses the current route to create the url

Re: [fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Hector Virgen
No, it defaults the the route that matched the current request. It works similarly to the url view helper. Do you have any custom routes set up? It seems to me that you may have one that looks something like like this: /:controller It seems like that's the case because normally with only the

Re: [fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Cameron
I have two routes, the default and a RESTful router. So because it didn't really know what route to be on, it.. oh, ok, so it probably WAS doing the right thing, and returning the correct route (a RESTful one) when the URL matched that router - it's just a pity that it wasn't adding the http

Re: [fw-general] Zend Navigation ignoring Action section of config

2010-02-21 Thread Hector Virgen
LOL :) Yea, that'd be interesting if Zend_Navigation was outputting headers! -- Hector On Sun, Feb 21, 2010 at 10:48 PM, Cameron themsel...@gmail.com wrote: I have two routes, the default and a RESTful router. So because it didn't really know what route to be on, it.. oh, ok, so it