Answer the question
In order to leave comments, you need to log in
url generation. How right?
Hey! Problem: wrong url generation. How to fix ?
Yes: /panel/groups/update?id=2
Needed:/panel/groups/update/2
Routing rules
'panel/groups/<factor:\w+>'=>'/admin/backend/groups',
'panel/groups/<factor:\w+>/<id:\d+>'=>'/admin/backend/groups',
'url'=>'Yii::app()->createAbsoluteUrl(\'/admin/backend/groups\', array(\'factor\'=>\'delete\',\'id\'=>$data["id"]))',
array('panel/groups/<factor:\w+>'=>'/admin/backend/groups','matchValue'=>false),
'panel/groups/<factor:\w+>/<id:\d+>'=>'/admin/backend/groups',
Answer the question
In order to leave comments, you need to log in
Check other rules, most likely they overlap yours.
And the initial slash in the route is not needed - admin/backend/groups
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question