Hi raphael,
Yes it's for all routes, I just want define my own generator route
class to add an option for generate url function to manage subdomain.
For example I define my host in app.yml like that : www.domain.com
And in my routing

# If the current host is default host, generate relative url else an
absolute url with the default host (if we no define absolute...)
because no sub option defined
# in www.domain.com this route generate => /blog-list
# in myblog.domain.com this route generate => http://www.domain.com/blog-list
blog_list:
  url:   /blog-list
  param: { module: Blog, action: index }

# Generate a relative url because sub option is true
blog:
  url:     /blog
  param:   { module: Blog, action: show }
  options: { sub: true }


thx for you reply, and sorry for my poor english ;-)

On 17 fév, 00:03, Raphael Schumacher <[email protected]>
wrote:
> My apologies if I misunderstood your question, and perhaps you may
> elaborate a bit more on your specific situation. You want to replace
> sfRoute by your own class in general for all routes (unless explicitly
> specified in routing.yml)? What sort of routes have you then defined
> in routing.yml, e.g. sfDoctrineCollectionRoute/
> sfPropelCollectionRoute? (I guess you must still have some sort of
> route definitions in there, right?)

-- 
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