refactored gii.

This commit is contained in:
qiang.xue
2010-04-07 00:41:20 +00:00
parent db6ac30107
commit 36bd0c8b69
12 changed files with 67 additions and 70 deletions

View File

@@ -35,6 +35,12 @@ class ControllerCode extends CCodeModel
);
}
public function successMessage()
{
$link=CHtml::link('try it now', Yii::app()->createUrl($this->controller), array('target'=>'_blank'));
return "The controller has been generated successfully. You may $link.";
}
public function prepare()
{
$this->files=array();