Hi Andreas,
On Thursday 29 September 2011 17:00:01 Andreas Möller wrote:
> Hello Jurian,
>
> thanks for your quick reply.
>
> > If you want to create an url based on a custom route [1], you can supply
> > the route name in the url view helper for that. For example, if you have
> > a route called "blog" and is defined as "blog/:controller/:action/:id",
> > just create the url to blog/article/view/1 by this:
> >
> > $this->url(array('controller' => 'article', 'action' => 'view', 'id' =>
> > '1'), 'blog');
>
> I know, but I want to know if there's a way without having to specify the
> name of the route.
>
> Is it?
>
>
> Best regards,
>
> Andreas
And then you create five custom routes and which one has the router to
choose? You can only leave the route name for the current route. If you
want to point to another route, you always have to specify the route name.
Regards, Jurian
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]