[Flow] Routes as described in the documentation don't work

Patric Eckhart mail at patriceckhart.com
Sat Jun 27 12:44:27 CEST 2015


Hey guys,

the link in my fluid template like:
<f:link.action action="show" controller="staticContent" arguments="{staticContent: '27c75af9-6236-55f4-8a1b-d74f18386298'}">Impressum</f:link.action>

and in my Routes.yaml i have 
-
  name: 'Single product route'
  uriPattern: 'content/{StaticContent}'
  defaults:
    '@package':     'MyCool.Project'
    '@controller':  'StaticContent'
    '@action':      'show'
  routeParts:
    StaticContent:
      objectType: 'MyCool\Project\Domain\Model\StaticContent'
      uriPattern: '{title}'

this do not work, the url like
mycool.project/staticcontent/show?staticContent=27c75af9-6236-55f4-8a1b-d74f18386298

When I write this in my Routes.yaml
-
  name: 'Single product route'
  uriPattern:    'images/{@action}'
  defaults:
    '@package':    'MyCool.Project'
    '@controller': 'StaticContent'
  appendExceedingArguments: 'true'

it works, but I could not use the URL I want like. mydomain.com/impressum (impressum is {title})

Can you help me? Many thanks!


More information about the Flow mailing list