I need to use urls like <controller>.<action>
, for example: api.wwwhost.com/index.php?r=people.top
So, I've tried to write pattern
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'caseSensitive'=>false,
'useStrictParsing'=>true,
'rules'=>array(
'<controller:\w+>.<action:\w+>' => '<controller>/<action>',
),
),
but it does not work. As I know, symbol "." not included in "\w+".
Where is my mistake?