Hello,
I want to change the url:
my_site/index.php/my_controller/view?id=something
to:
my_site/index.php/random_name/something
I have tried:
'urlManager'=>array(
'rules'=>array(
'my_controller/view/<id:\d+>'=>'my_controller/view',
it worked: my_site/index.php/my_controller/view/something
I also tried:
'rules'=>array(
'random_name'=>'my_controller/view'
It worked: my_site/index.php/random_name?id=something
But the combination of both doesn’t work.
Can i do something else?
Thank you.