diff --git a/framework/yii/gii/generators/form/templates/action.php b/framework/yii/gii/generators/form/templates/action.php index 6b084f4..7e2f876 100644 --- a/framework/yii/gii/generators/form/templates/action.php +++ b/framework/yii/gii/generators/form/templates/action.php @@ -14,7 +14,7 @@ echo "viewName), '_')) ?>() { - $model = new = $generator->modelClass ?>= empty($generator->scenarioName) ? '' : "(['scenario' => '{$generator->scenarioName}'])" ?>; + $model = new = $generator->modelClass ?>= empty($generator->scenarioName) ? "" : "(['scenario' => '{$generator->scenarioName}'])" ?>; if ($model->load($_POST)) { if($model->validate()) { diff --git a/framework/yii/gii/generators/form/templates/form.php b/framework/yii/gii/generators/form/templates/form.php index a448687..12c2ac4 100644 --- a/framework/yii/gii/generators/form/templates/form.php +++ b/framework/yii/gii/generators/form/templates/form.php @@ -21,15 +21,15 @@ use yii\widgets\ActiveForm;
- This is the view content for action "= " echo $this->context->action->id; ?>". - The action belongs to the controller "= " echo get_class($this->context); ?>" - in the "= " echo $this->context->module->id; ?>" module. + This is the view content for action "= "= " ?>$this->context->action->id ?>". + The action belongs to the controller "= "= " ?>get_class($this->context) ?>" + in the "= "= " ?>$this->context->module->id ?>" module.
You may customize this page by editing the following file:
- = " echo __FILE__; ?>
+ = "= " ?>__FILE__ ?>