예제 #1
0
 public function actionInstall()
 {
     if (!Yii::app()->user->hasState('adminName')) {
         $this->redirect(array('/install/main/config'));
     }
     $parser = new MySQLParser();
     $parser->fileName = $this->getFilePath();
     $slices = $parser->getSliceCount();
     $this->render('install-db', array('slices' => $slices));
 }