[Flow] Routing controllers placed in subfolders

Bastian Waidelich bastian at typo3.org
Wed Aug 28 11:48:22 CEST 2013


Christian Eßl wrote:

Hi Christian,

> I found the problem in my configuration. It looks like variables like
> "{bar}" ,specified in the uriPattern,  _must_ be named after the model
> in lowerCamelCase. After I did that (the full name was
> {templateVariable}), it worked.

That's not true, the routing framework doesn't care about the name!?
But it has to be the same that you expect in your controller action:


public function someAction(\Vendor\Package\Domain\Model\Foo\Bar $bar) {
}

-> {bar}


-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the Flow mailing list