Код: Выделить всё
'preload'=>array( 'demoComponent' ),
'components'=>array(
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(),
),
'demoComponent' => array(
'class' => 'DemoComponent',
),
),
Код: Выделить всё
function init() {
Yii::app()->urlManager->rules = array('page'=>'site/page');
}
Ошибка
Page Not Found
Unable to resolve the request "page".