[FLOW3-general] routes.yaml and urls

Elías Fernández eliasfernandez at gmail.com
Wed May 5 14:06:27 CEST 2010


Hello list,
I´m playing with flow3 ( what a nice work despite the speed in windows ).
All works fine, but when i try to use the routes.yaml ( i´m so newbie to
yaml syntax ), i try to add a short url to the add action of my
"FirstPackage" AddressList Controller .
Copy & paste all except the comments:

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




-
  name: 'Welcome'
  uriPattern: '<WelcomeSubroutes>'
  subRoutes:
    WelcomeSubroutes:
      package: Welcome



-
  name: 'Documentation Browser'
  uriPattern: '<DocumentationBrowserSubroutes>'
  subRoutes:
    DocumentationBrowserSubroutes:
      package: DocumentationBrowser



-
  name: 'FLOW3'
  uriPattern: '<FLOW3Subroutes>'
  defaults:
    '@format': 'html'
  subRoutes:
    FLOW3Subroutes:
      package: FLOW3



it doesn´t works.

I want change this url
http://elias.local:8080/firstpackage/addresslist/add
for this
http://elias.local:8080/add/


Someone can tell me something about?
A url with a good example or a package with correctly configured routing ?

Sure i´m not seeing something so simple

Thanx



Elías Fernández Velázquez
http://www.ipts.es


More information about the FLOW3-general mailing list