[FLOW3-general] routes.yaml and urls

Bastian Waidelich bastian at typo3.org
Wed May 5 16:23:51 CEST 2010


Elías Fernández wrote:

Hi Elías.

>    name: 'Address'
>    uriPattern: 'addnew'
>    defaults:
>      @package:   FirstPackage
>      @controller:AddressList
>      @action: add

in YAML a new line must not start with a special character, so you'll 
have to put "@xyz" in quotes. And there must be at least one whitespace 
character between colon and value. like so:

-
   name: 'Address'
   uriPattern: 'addnew'
   defaults:
     '@package':    FirstPackage
     '@controller': AddressList
     '@action':     add


did that help?

Bastian

btw: for most PHP IDEs you'll find free YAML syntax highlighter plugins 
- that helps a lot.


More information about the FLOW3-general mailing list