Exemplo n.º 1
0
	/**
	 * Index page with tables selector.
	 */
	public function actionIndex()
	{
		if(!$this->module->authMode || $this->module->openMode || (Yii::app()->user->isGuest || !in_array(Yii::app()->user->level, array('root'))))
			throw new CHttpException(403);

		$generator = new AAGenerator($this->module->dbSchema);
		$this->pageTitle = Yii::t('AutoAdmin.generator', 'SQL table selection');
		$this->breadcrumbs[] = $this->pageTitle;
		$this->render($this->module->viewsPath.'generatorTableSelect', array('tables'=>$generator->getTables()));
	}