'urlManager'=>array(
'urlFormat' => 'path',
'showScriptName'=>false,
'rules'=>array(
'page/<id:\d+>/<alias:.*>' => 'page/index/',
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
<platform:.*>
, но он может и не быть.'page/<id:\d+>/<alias:.*>/<platform:.*>' => 'page/index/',
'rules'=>array(
'page/<id:\d+>/<alias:.*>/<platform:.*>' => 'page/index/',
'page/<id:\d+>/<alias:.*>' => 'page/index/',
'page/<id:\d+>' => 'page/index/',
'page' => 'page/index/',
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
/**
* @var array the default GET parameters (name=>value) that this rule provides.
* When this rule is used to parse the incoming request, the values declared in this property
* will be injected into $_GET.
*/
public $defaultParams=array();
[
'route' => 'page/index',
'pattern' =>'page/<id:\d+>/<alias:.*>/<platform:.*>',
'defaultParams => [
'platform' => 'some platform'
]
]