framework/gii/CCodeGenerator.php
public function actionIndex()
	{
		$model=$this->prepare();
		if($model->files!=array() && isset($_POST['generate'], $_POST['answers']))
		{
			$model->answers=$_POST['answers'];
			$model->status=$model->save() ? CCodeModel::STATUS_SUCCESS : CCodeModel::STATUS_ERROR;
		}

		$this->render('index',array(
			'model'=>$model,
		));
	}
public function actionIndex()
	{
		$model=$this->prepare();
		if($model->files!=array() && isset($_POST['generate'], $_POST['answers']))
		{
			$model->answers=$_POST['answers'];
			$model->status=$model->save() ? CCodeModel::STATUS_SUCCESS : CCodeModel::STATUS_ERROR;
		}

		$this->render('index',array(
			'model'=>$model,
		));
	}
public function actionIndex ( ) { $ model = $ this -> prepare ( ) ; if ( $ model -> files != array ( ) && isset ( $ _POST [ 'generate' ] , $ _POST [ 'answers' ] ) ) { $ model -> answers = $ _POST [ 'answers' ] ; $ model -> status = $ model -> save ( ) ? CCodeModel :: STATUS_SUCCESS : CCodeModel :: STATUS_ERROR ; } $ this -> render ( 'index' , array ( 'model' => $ model , ) ) ; }
The code generation action.
This is the action that displays the code generation interface.
Child classes mainly need to provide the 'index' view for collecting user parameters
for code generation.
The code generation action . This is the action that displays the code generation interface . Child classes mainly need to provide the index view for collecting user parameters for code generation .