framework/gii/CCodeGenerator.php
public function actionCode()
	{
		$model=$this->prepare();
		if(isset($_GET['id']) && isset($model->files[$_GET['id']]))
		{
			$this->renderPartial('/common/code', array(
				'file'=>$model->files[$_GET['id']],
			));
		}
		else
			throw new CHttpException(404,'Unable to find the code you requested.');
	}
public function actionCode()
	{
		$model=$this->prepare();
		if(isset($_GET['id']) && isset($model->files[$_GET['id']]))
		{
			$this->renderPartial('/common/code', array(
				'file'=>$model->files[$_GET['id']],
			));
		}
		else
			throw new CHttpException(404,'Unable to find the code you requested.');
	}
public function actionCode ( ) { $ model = $ this -> prepare ( ) ; if ( isset ( $ _GET [ 'id' ] ) && isset ( $ model -> files [ $ _GET [ 'id' ] ] ) ) { $ this -> renderPartial ( '/common/code' , array ( 'file' => $ model -> files [ $ _GET [ 'id' ] ] , ) ) ; } else throw new CHttpException ( 404 , 'Unable to find the code you requested.' ) ; }
The code preview action.
This action shows up the specified generated code.
@throws CHttpException if unable to find code generated.
The code preview action . This action shows up the specified generated code .