[FLOW3-general] Sub folder in Controller
Bastian Waidelich
bastian at typo3.org
Fri Mar 15 18:21:43 CET 2013
Cornel Widmer wrote:
> Finally it works! Thanks for your advice. It seem like I didn't try this
> combination of Back- and forwardshlashes ... :-/
Thats good!
> is there a way to catch all subControllers with one route?
Unfortunately not out of the box (AFAIK).
If you'd write:
-
name: 'Generic route for WS.Rico'
uriPattern: '{@package}/{@controller}/{@action}'
defaults:
'@package': 'WS.Rico'
'@action': 'index'
the URI would need to be "ws.rico/administration\checklist/index"
for example (node the backslash).
I'm not 100% sure whether "ws.rico/administration/checklist/index" would
work, too but I doubt it.
You could, however, create a simple RoutePartHandler (see [1]) that
replaces the backslash.. Or you create a more generic one that can
replace arbitrary strings.
..Or you use subpackages:
-
name: 'Generic route for WS.Rico'
uriPattern: '{@package}/{@subpackage}/{@controller}/{@action}'
defaults:
'@package': 'WS.Rico'
'@action': 'index'
HTH
[1]
http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/Routing.html#route-part-handlers
--
Bastian Waidelich
--
Core Developer Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the FLOW3-general
mailing list