This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

routing problem

Notes and reports about symfony 1.0.x stable

routing problem

by gaurangrajvir » Wed Dec 01, 2010 12:52 pm

Hi,
i want routing like following how can i do that ?

page:
url: /dealers-in-:state/:url
param: { module: page, action: list}

in this state and url is parameter

i want url like => /dealers-in-[state]/[url]

how can i do this ??

Thanks in advance

- Gaurang
User avatar
gaurangrajvir
Senior Member
 
Posts: 192
Joined: Wed May 16, 2007 7:51 am
Location: RAJKOT

Re: routing problem

by gaurangrajvir » Thu Dec 02, 2010 10:58 am

Hi,

anyone know this...?

please reply...

Thanks
User avatar
gaurangrajvir
Senior Member
 
Posts: 192
Joined: Wed May 16, 2007 7:51 am
Location: RAJKOT

Re: routing problem

by gaurangrajvir » Fri Dec 03, 2010 1:26 pm

Hello Halfer

gaurangrajvir wrote:Hi,
i want routing like following how can i do that ?

page:
url: /dealers-in-:state/:url
param: { module: page, action: list}

in this state and url is parameter

i want url like => /dealers-in-[state]/[url]

how can i do this ??

Thanks in advance

- Gaurang



anyone ??
User avatar
gaurangrajvir
Senior Member
 
Posts: 192
Joined: Wed May 16, 2007 7:51 am
Location: RAJKOT

Re: routing problem

by gaurangrajvir » Mon Dec 13, 2010 7:22 am

?????????
User avatar
gaurangrajvir
Senior Member
 
Posts: 192
Joined: Wed May 16, 2007 7:51 am
Location: RAJKOT

Re: routing problem

by skywalker » Tue Dec 21, 2010 4:36 pm

You can do it this way, so I suggest you rewrite your routing like this:

Code: Select all
page:
url: /dealers-in/:state/:url
param: { module: page, action: list}


Or:

Code: Select all
page:
url: /:state/:url
param: { module: page, action: list}


and add the 'dealers-in-' when using the route, ie:
Code: Select all
'@page?state=dealers-in-' . $state
May the source be with you
User avatar
skywalker
Faithful Member
 
Posts: 337
Joined: Fri Mar 07, 2008 4:31 pm
Location: Norway