[TYPO3-team-core-v5] TYPO3 v5 Routing
Bastian Waidelich
waidelich at network-publishing.de
Tue Jun 24 13:23:59 CEST 2008
Extronaut wrote:
Hi Andreas,
> How would you like to handle URIs which are
> generated in views (e.g. a, button, forms-tags)
There will be some kind of link helper for sure!
you would pass in some data as array and a nice URL is generated -
similar to the one and only typolink.
by default the current plugin/controller could be used, so this
parameter would be optional.
> Example:
> $someObject->generateLink(array('controller' => 'news', 'action' =>
> 'latest', 'counter' => 5 );
yep, something like that probably.
> $someObject->generateLink('news/latest/5');
That's already a bit too specific. Maybe the client wants URLs like
".../news/5/latest". But only when you are in a special part of the
website... you know clients ;)
> $someObject->generateLink('@latest_news', array('counter' => 5));
yes, that's one way it works in Zend Framework (more or less). I'm not a
big fan of the name-reference though, because it forces the template
editor to know about the routes more than he needed to..
> FLOW3 will need such an URI API
right.
> so that nobody has to care about which front controller is used (either
> index.php or index_dev.php).
index.php/index_dev.php is not the front controller, but - yeah - you're
right otherwise!
Thanks,
Bastian
More information about the TYPO3-team-core-v5
mailing list