public function init() { // Check if system is installed if (Yii::app()->isInstalled()) { $this->redirect(array("/site/index")); } }