Php takes care of this, even before symfony gets the parameters, so
there's no way to preserve them.

On Mon, Jun 22, 2009 at 18:17, AureL<[email protected]> wrote:
>
> Hello,
>
> I'm trying to use a '+' as separator in a slug.
>
> The problem is that this '+' is removed in controller :
>
> // in routing.yml
> myRoute:
>  url:   /:slug
>  param: { module: default, action: index }
>
> // in view
> $mySlug = 'this+is+my+slug';
> echo url_for('@myRoute?slug='.$mySlug);
>
> // in controller : default / index
> $request->getParameter('slug'); // returns 'this is my slug'
>
>
> Is there a way to preserve the '+' in controller ?
> Even if I know that '+' is considered as a white-space in URLs.
>
> Thanks for your help,
>
> >
>

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