Urlmanager

Hi,

i’m trying to create friendly urls

i have this kind of URL :

mysite.com/annonce/liste/pro=1&AnnonceType[id]=31

my first route url1.html is working fine :

‘url1’ => array(‘annonce/liste/’, ‘defaultParams’=>array(‘pro’=>1), ‘urlSuffix’=>’.html’),

but i can’t get working the 2nd one url2.html

‘url2’ => array(‘annonce/liste/’, ‘defaultParams’=>array(‘AnnonceType%5Bid%5D’=>31), ‘urlSuffix’=>’.html’),

i tried a lot of things such as replacing AnnonceType%5Bid%5D by [‘AnnonceType’][‘id’], etc…

can anyone help me with this

thank you!

Hi,

Does:




'url2' => array('annonce/liste/', 'defaultParams'=>array('AnnonceType' => array('bid' => 31)), 'urlSuffix'=>'.html'),



work?

Cheers

hi thanx alot

it doesn’t work but

with array(‘id’ => 31) it does

thank you !!