Hello
I have one question, maybe you can help me out.
I want the following Url
http://mysite/mycontroller/id/gid
To be taken care of by mycontroller/view
So I have the following in urlManager and I was hoping that the first rule would take care of it:
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'mycontroller/<id:\w+>/<gid:\w+>'=>'mycontroller/view',
'mycontroller/<id:\w+>'=>'mycontroller/index',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
But I keep getting: The system is unable to find the requested action "whatever-it-the-id-is"
What I am doing wrong ?
Regards,
Nuno