public function init() { parent::init(); $_SERVER['HTTP_X_REWRITE_URL'] = null; $components = array('request' => new CHttpRequest()); Yii::app()->setComponents($components); // для правильной генерации урлов Yii::app()->attachEventHandler(BackendApplication::EVENT_ON_YIIGIN_MESSAGE, array($this, 'addSticker')); }
public function init() { parent::init(); $this->favicon = '/favicon.ico'; }