How to force params to urlManager rule?

Hi there, I just started with Yii. It’s my first framework so I needed a day to “understand” all the logic and stuff. But now it’s just awesome! ;D

Now my question. I want to do something like this:



[...]





'rules' => array (


            'videos' => 'media/list',


            'pictures' => 'media/list',


          )





[...]


'videos' should append the GET param 'mediaType=1'

'pictures' should append the GET param 'mediaType=2'

How do I do this? Obviously there is no feature implemented to attach params to a rule/route? I could may use htacces to force those params, but that's kind of dirty because I already have my routes in the Yii config file.

You can use this:

'videos'=>'media/list/mediaType/1'

Quote

You can use this:

'videos'=>'media/list/mediaType/1'

Thank you qiang! Keep up the good work :)