Hi,
i'm trying to create friendly urls
i have this kind of URL :
mysite.com/annonce/liste/pro=1&AnnonceType%5Bid%5D=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!
Page 1 of 1
Urlmanager
#2
Posted 31 January 2013 - 08:04 AM
Hi,
Does:
work?
Cheers
Does:
'url2' => array('annonce/liste/', 'defaultParams'=>array('AnnonceType' => array('bid' => 31)), 'urlSuffix'=>'.html'),
work?
Cheers
wael, on 31 January 2013 - 06:18 AM, said:
Hi,
i'm trying to create friendly urls
i have this kind of URL :
mysite.com/annonce/liste/pro=1&AnnonceType%5Bid%5D=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!
i'm trying to create friendly urls
i have this kind of URL :
mysite.com/annonce/liste/pro=1&AnnonceType%5Bid%5D=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!
Share this topic:
Page 1 of 1

Help












