[TYPO3-team-core-v5] TYPO3 v5 Routing
Peter Niederlag
niederlag at ikd01.de
Thu Jun 19 09:06:44 CEST 2008
Hello Bastian,
Bastian Waidelich schrieb:
[...]
> If you take Zend Framework for instance, a default route could look like
> this:
>
> $route = new Zend_Controller_Router_Route(
> ':module/:controller/:action/*',
> array('module' => 'default')
> );
> $router->addRoute('default', $route);
[...]
> A more specific route could be the following:
>
> $route = new Zend_Controller_Router_Route(
> 'news/:id',
> array(
> 'module' => 'default',
> 'controller' => 'news',
> 'action' => 'show'
> )
> );
> $router->addRoute('news', $route);
Two things I'd like to know about:
Is the leading ':' in the second example on the first
constructor-argument ('new/:id') left out by purpose? If so, is there an
explanation of the meaning of the ':'?
Does the first argument on the ->addRoute function have any special
maaning? To be more precise, is 'default' a special keyword here, or is
this just used as some arbitrary identifier?
Thx and Greets,
Peter
--
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
http://www.typo3partner.net * professional services network *
More information about the TYPO3-team-core-v5
mailing list