Can any one tell me about the urlManager's rules:
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
why we can only use id as a parameter? what if i want group_id or some thing else which is generic.
Page 1 of 1
urlManager and rules Rules are confusing me
#2
Posted 27 July 2012 - 05:17 AM
you can use:
without any problem. You have to remember that instead of $id you'll use $group_id, and that's all.
'<controller:\w+>/<group_id:\d+>' => '<controller>/view', '<controller:\w+>/<action:\w+>/<group_id:\d+>' => '<controller>/<action>',
without any problem. You have to remember that instead of $id you'll use $group_id, and that's all.
Share this topic:
Page 1 of 1

Help












