If you set no_script_name to false then it shouldn't change you url
from
http://www.example.com/index.php/module/action to
http://www.example.com/moduleName?productId=2

Try to set it to true again (or look on the page in the dev
environment - with the frontend_dev.php) and look how the URL changes.
..if you set it to true it should only remove the frontend controller
name (index.php, backend.php....) from the URL .. nothing else


On 23 čnc, 10:09, mehdi hadef <mehdi.ha...@gmail.com> wrote:
> Yes by default it should take the action index like you say but it does not
> in my case. Maybe it's due to the fact that the URI have parameters ?
>
> I think it's not clean because I found strange that changing a parameter in
> my settings.yml forced me to modify my routings.yml to work.
>
> 2010/7/21 Gustavo Adrian <comfortablynum...@gmail.com>
>
>
>
> > If I'm wrong, please, correct me, but didn't the routing framework take the
> > action "index" by default, so you can avoid tu put it on the URL?
>
> > BTW, Why do you think is not clean to put the rules on the routing.yml?
>
> > On Wed, Jul 21, 2010 at 6:51 AM, snoop <mehdi.ha...@gmail.com> wrote:
>
> >> Hi all,
>
> >> I changed the no_script_namemy parameter of my settings.yml for prod
> >> environnement and set it to on.
> >> So now I havehttp://www.example.com/module/actioninstead of
> >>http://www.example.com/index.php/module/actionlike I want.
>
> >> But I got a problem with my link using helper url_for().
> >> For example in my action I have a link with url_for('moduleName/index?
> >> productId=$productId') and the result in my page is
> >>http://mywebsite.com/moduleName?productId=2.
> >> So I got a 404 error because it remove my action name index.
>
> >> How can I solve this problem ? I know I can add some rules in my
> >> routing.yml to fix it but I think this solution is not clean ...
>
> >> --
> >> If you want to report a vulnerability issue on symfony, please send it to
> >> security at symfony-project.com
>
> >> 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<symfony-users%2bunsubscr...@goog
> >>  legroups.com>
> >> For more options, visit this group at
> >>http://groups.google.com/group/symfony-users?hl=en
>
> >  --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > 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<symfony-users%2bunsubscr...@goog 
> > legroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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