[Flow] Routing controllers placed in subfolders

Christian Eßl essl at incert.at
Sun Aug 25 16:39:30 CEST 2013


Hi,

I have a Controller, that is placed in a subfolder like this: 
./Controllers/Foo/BarController.php

Because this controller is not handled by TYPO3 Flows default routing, I need to configure a route in my Routes.yaml

Static Routes like this work fine:

--------------------
  name: 'Foo\Bar'
  uriPattern:    'foo/bar/templatevariable(/{@action})'
  defaults:
    '@controller': 'Foo\Bar'
    '@action':     'index'
---------------------

But Dynamic Routes like this don't get transformed at all:

---------------------
  name: 'Foo\Bar Dynamic'
  uriPattern:    'foo/bar/{bar}/{@action}'
  defaults:
    '@controller': 'Foo\Bar'
  routeParts:
    bar:
      objectType: Vendor\Package\Domain\Model\Foo\Bar
      uriPattern: '{title}'
---------------------

Did I forget something in my Route config? This configuration works fine for me with controllers that aren't placed in a subfolder.

Greetings,
Christian


More information about the Flow mailing list