25 if( $this->module->install!==
true )
26 $this->redirect(Yii::app()->homeUrl);
28 $this->_authorizer = $this->module->getAuthorizer();
29 $this->_installer = $this->module->getInstaller();
30 $this->layout = $this->module->layout;
31 $this->defaultAction =
'run';
34 $this->module->registerScripts();
43 return $this->_installer->installed===
true ? array(
'accessControl') : array();
61 'users'=>$this->_authorizer->getSuperusers(),
74 $this->render(
'confirm');
84 if(
true || Yii::app()->user->isGuest===
false )
87 if( isset($_GET[
'confirm'])===
true || $this->_installer->installed===
false )
90 if( $this->_installer->run()===RInstaller::ERROR_NONE )
93 Yii::app()->user->isSuperuser =
true;
94 $this->redirect(array(
'install/ready'));
98 $this->redirect(array(
'install/error'));
103 $this->redirect(array(
'install/confirm'));
118 $this->render(
'ready');
126 $this->render(
'error');