hi all,

i have problems in using link_to in conjunction with sf_culture.

suppose i have the following routing.yml:

# route for articles
article:
  url:    /:sf_culture/article/details/:article_id
  param:  { module: article, action: show }
  requirements:
    sf_culture:  (?:en|de|fr|es|pt)
    article_id: (?:a|b|c)


[..]

# default route
default:
  url:   /:sf_culture/:module/:action/*
  requirements:
    sf_culture: (?:en|de|fr|es|pt)


now, when i use link_to(..) in my template the following way:

<?php echo link_to('TEST', 'article/details/a') ?>,

i get
'http://myapp.local/en/article/details' instead of 'http://myapp.local/
en/article/details/a'

when i directly visit "http://myapp.local/en/article/details/a"; in the
browser, symfony correctly uses the 'article'-route.
a <? php echo link_to('TEST', '/en/article/details/a') ?> works as
expected too.
 i think, because of the missing culture in the first link_to(..)
call, the symfony routing resolution falls back to the default-route.
is this a generic problem in symfony or am i missing something that
could solve the problem?

regards, lowshoe.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to