[TYPO3-team-core-v5] TYPO3 v5 Routing
Extronaut
andreas.horn at extronaut.de
Thu Jun 19 20:01:20 CEST 2008
Hi Bastian,
your concept sounds very promising so far. I have got a questions: How
would you like to handle URIs which are
generated in views (e.g. a, button, forms-tags) and point to another
controller/action within the FLOW3 framework?
Do you think it would be a good idea to offer any class/methods to
translate array parameters in order to
get "nice" and "enriched" external URIs?
Example:
$someObject->generateLink(array('controller' => 'news', 'action' =>
'latest', 'counter' => 5 );
OR
$someObject->generateLink('news/latest/5');
OR using a named route
$someObject->generateLink('@latest_news', array('counter' => 5));
all these statements might generate something like:
"http://www.domain.tld/de/news/latest/5.html"
or in a multi languages enviroment
"http://www.domain.tld/en/news/latest/5.html"
Merging default parameters into outgoing URIs and adding a standard suffix
are very important issues
which should be considered. FLOW3 will need such an URI API otherwise
each developer will find a different
solutions for such requirements. Moreover, I think that outgoing links
have to be enviroment-independent
so that nobody has to care about which front controller is used (either
index.php or index_dev.php).
I hope that helps a bit :)
Andreas
More information about the TYPO3-team-core-v5
mailing list