[Flow] Re: Re: Re: Re: Sub folder in Controller

Anup Shukla anup.shkl at gmail.com
Tue Nov 19 10:29:49 CET 2013


Hi Bastian,

Quote: Bastian Waidelich wrote on Mon, 18 March 2013 10:00
----------------------------------------------------
> namespace Your\Package\Controller\Administration;
> 
> class UserController extends \TYPO3\Flow\Mvc\Controller\ActionController {
> 
> 
> public function indexAction() {
> 	$this->redirect('test', 'Administration\User');
> }
> 
> public function testAction() {
> 	return 'it works!';
> }
> 
> ?>
> 
> Routes.yaml:
> 
> -
>   name: 'User administration'
>   uriPattern: 'administration/user(/{@action})'
>   defaults:
>     '@package':    'Your.Package'
>     '@controller': 'Administration\User'
>     '@action':     'index'
> 
> 
> 
> 

This did not work for me as-is
I had to add '@format' : '' in the route defaults to get it working

Apparently, the UriBuilder sets the format to 'html'  in the route arguments before sending it for resolution; which fails.
Bug ?




More information about the Flow mailing list