logudotcom
(Logudotcom)
1
I have a rule below,
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'urlSuffix'=>'',
'rules'=>array(
'<id:[\w-]+>'=>'cms/cms/view',
How do I make another rule similar ‘<id:[\w-]+>’=>‘cms/cms/view’, … instead ‘<name:[\w-]+>’=>‘users/profile’,
alirz23
(Alirz23)
2
you already have the rule just put it below the other rule.
logudotcom
(Logudotcom)
3
it is also the same kind of rule
first rule , i use for CMS way display another rule is same to display user profile by name wise?
alirz23
(Alirz23)
4
this should do it
'rules'=>array(
'<id:[\w-]+>'=>'cms/cms/view',
'user/<name:[\w-]+>'=>'users/profile',