routename         GET    /routename.:sf_format
routename_new     GET    /routename/new.:sf_format
routename_create  POST   /routename.:sf_format
routename_edit    GET    /routename/:id/edit.:sf_format
routename_update  PUT    /routename/:id.:sf_format
routename_delete  DELETE /routename/:id.:sf_format
routename_show    GET    /routename/:id.:sf_format


symfony app:route routename_new


Name         routename_new
Pattern      /routename/new.:sf_format
Class        sfDoctrineRoute
Defaults     action: 'new'
             module: 'routename'
             sf_format: 'html'
Requirements id: '\\d+'
             sf_format: '[^/\\.]+'
             sf_method: 'get'
Options      context: array ()
             debug: false
             extra_parameters_as_query_string: true
             generate_shortest_url: true
             load_configuration: false
             logging: false
             model: 'JobeetJob'
             object_model: 'JobeetJob'
             segment_separators: array (0 => '/',1 => '.',)
             segment_separators_regex: '(?:/|\\.)'
             suffix: ''
             text_regex: '.+?'
             type: 'object'
             variable_content_regex: '[^/\\.]+'
             variable_prefix_regex: '(?:\\:)'
             variable_prefixes: array (0 => ':',)
             variable_regex: '[\\w\\d_]+'
Regex        #^
             /routename
             /new
             (?:\.(?P<sf_format>[^/\.]+)
             )?
             $#x
Tokens       separator  array (0 => '/',1 => NULL,)
             text       array (0 => 'routename',1 => NULL,)
             separator  array (0 => '/',1 => NULL,)
             text       array (0 => 'new',1 => NULL,)
             separator  array (0 => '.',1 => NULL,)
             variable   array (0 => ':sf_format',1 => 'sf_format',)


Doesnt seem to work realy.

Someone have an idea ?

On Feb 23, 9:44 am, Damien Lepage <[email protected]> wrote:
> Try this:
>
> routename:
>   class:   sfDoctrineRouteCollection
>   options: { model: JobeetJob }
>   prefix_path:         /:sf_culture/
>
> 2009/2/23 sikk <[email protected]>
>
>
>
> > routename:
> >  class:   sfDoctrineRouteCollection
> >  options: { model: JobeetJob }
>
> > Hi,
>
> > Does someone have any idea how to make this route having a prefix to
> > prevent creating the seven restful routes by hand ? I can't find the
> > right syntax at the moment.
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to