现在要将
index.php?r=hotel/list&cityId=53&minPrice=0&maxPrice=0&rank=0&cbdId=0&chainId=0&px=1
转换成
hotellist-53-0-0-0-0-0-1.html
规则应该怎么写?
'rules'=>array(
'hotellist-<cityId:\d>-<minPrice:\d>-<maxPrice:\d>-<rank:\d>-<cbdId:\d>-<chainId:\d>-<px:\d>'=>'hotel/list',
)
如上所写,在createUrl的时候,能够生成期望的url,但是访问的时候提示404