-- Sudheer Satyanarayana <sudhee...@binaryvibes.co.in> wrote
(on Tuesday, 06 October 2009, 10:29 PM +0530):
> > There are two things going wrong: you need to specify the route, and,
> > specifically, the default route, when using the url() view helper.
> >
> >      $url = $this-> url(array(
> >          'module'     => 'default',
> >          'controller' => 'user',
> >          'action'     => 'login'
> >      ), 'default', true);
> >
> >    
> Thanks, Matthew.
>
> I was assuming that the url view helper would default to 'default' route.
>
> Is it possible to add this enhancement to the url view helper?

No. It defaults to the route matched during routing, and this is the
behavior that has been documented from the beginning. Changing that
would break a great deal of code.

-- 
Matthew Weier O'Phinney
Project Lead            | matt...@zend.com
Zend Framework          | http://framework.zend.com/

Reply via email to