diff --git a/apps/advanced/backend/views/layouts/main.php b/apps/advanced/backend/views/layouts/main.php index 1c003e5..85a4d2b 100644 --- a/apps/advanced/backend/views/layouts/main.php +++ b/apps/advanced/backend/views/layouts/main.php @@ -15,8 +15,8 @@ AppAsset::register($this);
- -diff --git a/apps/advanced/backend/views/site/login.php b/apps/advanced/backend/views/site/login.php index d52eaa1..65495bf 100644 --- a/apps/advanced/backend/views/site/login.php +++ b/apps/advanced/backend/views/site/login.php @@ -11,18 +11,18 @@ $this->title = 'Login'; $this->params['breadcrumbs'][] = $this->title; ?>
Please fill out the following fields to login:
This is the About page. You may modify the following file to customize its content:
-=__FILE__; ?>
+ = __FILE__ ?>
If you have business inquiries or other questions, please fill out the following form to contact us. Thank you. @@ -21,16 +21,16 @@ $this->params['breadcrumbs'][] = $this->title;
diff --git a/apps/advanced/frontend/views/site/login.php b/apps/advanced/frontend/views/site/login.php index df758a8..3069f90 100644 --- a/apps/advanced/frontend/views/site/login.php +++ b/apps/advanced/frontend/views/site/login.php @@ -11,21 +11,21 @@ $this->title = 'Login'; $this->params['breadcrumbs'][] = $this->title; ?>
Please fill out the following fields to login:
Please fill out your email. A link to reset password will be sent there.
Please choose your new password:
Please fill out the following fields to signup:
This is the About page. You may modify the following file to customize its content:
-=__FILE__; ?>
+ = __FILE__ ?>
diff --git a/apps/basic/views/site/login.php b/apps/basic/views/site/login.php index 34936af..62b4398 100644 --- a/apps/basic/views/site/login.php +++ b/apps/basic/views/site/login.php @@ -11,7 +11,7 @@ $this->title = 'Login'; $this->params['breadcrumbs'][] = $this->title; ?>
Please fill out the following fields to login:
@@ -24,9 +24,9 @@ $this->params['breadcrumbs'][] = $this->title; ], ]); ?> - =$form->field($model, 'username'); ?> + = $form->field($model, 'username') ?> - =$form->field($model, 'password')->passwordInput(); ?> + = $form->field($model, 'password')->passwordInput() ?> =$form->field($model, 'rememberMe', [ 'template' => "=Html::encode($tagline); ?>
+= Html::encode($tagline) ?>
You may change the content of this page by modifying
- the file =' echo __FILE__; ?>
.
+ the file = ' echo __FILE__; ?>
.
- =' echo Html::a('Create =StringHelper::basename($generator->modelClass); ?>', ['create'], ['class' => 'btn btn-success']); ?> + = ' echo Html::a('Create = StringHelper::basename($generator->modelClass) ?>', ['create'], ['class' => 'btn btn-success']); ?>
indexWidgetType === 'grid'): ?> - =" echo GridView::widget([ + = " echo GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ @@ -59,11 +59,11 @@ foreach ($generator->getTableSchema()->columns as $column) { ], ]); ?> - =" echo ListView::widget([ + = " echo ListView::widget([ 'dataProvider' => $dataProvider, 'itemOptions' => ['class' => 'item'], 'itemView' => function ($model, $key, $index, $widget) { - return Html::a(Html::encode($model->=$nameAttribute; ?>), ['view', =$urlParams; ?>]); + return Html::a(Html::encode($model->= $nameAttribute ?>), ['view', = $urlParams ?>]); }, ]); ?> diff --git a/framework/yii/gii/generators/crud/templates/views/update.php b/framework/yii/gii/generators/crud/templates/views/update.php index 0b881ec..32bab23 100644 --- a/framework/yii/gii/generators/crud/templates/views/update.php +++ b/framework/yii/gii/generators/crud/templates/views/update.php @@ -17,19 +17,19 @@ use yii\helpers\Html; /** * @var yii\base\View $this - * @var =ltrim($generator->modelClass, '\\'); ?> $model + * @var = ltrim($generator->modelClass, '\\') ?> $model */ -$this->title = 'Update =Inflector::camel2words(StringHelper::basename($generator->modelClass)); ?>: ' . $model->=$generator->getNameAttribute(); ?>; -$this->params['breadcrumbs'][] = ['label' => '=Inflector::pluralize(Inflector::camel2words(StringHelper::basename($generator->modelClass))); ?>', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->=$generator->getNameAttribute(); ?>, 'url' => ['view', =$urlParams; ?>]]; +$this->title = 'Update = Inflector::camel2words(StringHelper::basename($generator->modelClass)) ?>: ' . $model->= $generator->getNameAttribute() ?>; +$this->params['breadcrumbs'][] = ['label' => '= Inflector::pluralize(Inflector::camel2words(StringHelper::basename($generator->modelClass))) ?>', 'url' => ['index']]; +$this->params['breadcrumbs'][] = ['label' => $model->= $generator->getNameAttribute() ?>, 'url' => ['view', = $urlParams ?>]]; $this->params['breadcrumbs'][] = 'Update'; ?> -- =' echo Html::a('Update', ['update', =$urlParams; ?>], ['class' => 'btn btn-primary']); ?> - =' echo Html::a('Delete', ['delete', =$urlParams; ?>], [ + = ' echo Html::a('Update', ['update', = $urlParams ?>], ['class' => 'btn btn-primary']); ?> + = ' echo Html::a('Delete', ['delete', = $urlParams ?>], [ 'class' => 'btn btn-danger', 'data-confirm' => Yii::t('app', 'Are you sure to delete this item?'), 'data-method' => 'post', ]); ?>
- =' echo DetailView::widget([ + = ' echo DetailView::widget([ 'model' => $model, 'attributes' => [ -public function action=Inflector::id2camel(trim(basename($generator->viewName), '_')); ?>() +public function action= Inflector::id2camel(trim(basename($generator->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()) { @@ -22,7 +22,7 @@ public function action=Inflector::id2camel(trim(basename($generator->viewName) return; } } - return $this->render('=$generator->viewName; ?>', [ + return $this->render('= $generator->viewName ?>', [ 'model' => $model, ]); } diff --git a/framework/yii/gii/generators/form/templates/form.php b/framework/yii/gii/generators/form/templates/form.php index f365ebc..a448687 100644 --- a/framework/yii/gii/generators/form/templates/form.php +++ b/framework/yii/gii/generators/form/templates/form.php @@ -14,22 +14,22 @@ use yii\widgets\ActiveForm; /** * @var yii\base\View $this - * @var =$generator->modelClass; ?> $model + * @var = $generator->modelClass ?> $model * @var ActiveForm $form */ -="?>"; ?> += "?>" ?> -- 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 "= " echo $this->context->action->id; ?>". + The action belongs to the controller "= " echo get_class($this->context); ?>" + in the "= " echo $this->context->module->id; ?>" module.
You may customize this page by editing the following file:
- =" echo __FILE__; ?>
+ = " echo __FILE__; ?>
=$generator->getDescription(); ?>
-=Html::a('Start »', ['default/view', 'id' => $id], ['class' => 'btn btn-default']); ?>
+= $generator->getDescription() ?>
+= Html::a('Start »', ['default/view', 'id' => $id], ['class' => 'btn btn-default']) ?>
=$generator->getDescription(); ?>
+= $generator->getDescription() ?>
"$id-generator", @@ -45,10 +45,10 @@ foreach ($generator->templates as $name => $path) { Please select which set of the templates should be used to generated the code. '); ?>=nl2br($results); ?>+
= nl2br($results) ?>diff --git a/framework/yii/gii/views/layouts/generator.php b/framework/yii/gii/views/layouts/generator.php index 7d51e65..bdc032e 100644 --- a/framework/yii/gii/views/layouts/generator.php +++ b/framework/yii/gii/views/layouts/generator.php @@ -25,7 +25,7 @@ $activeGenerator = Yii::$app->controller->generator;
Name | Result | Required By | Memo |
---|---|---|---|
- =$requirement['name']; ?> + = $requirement['name'] ?> | - =$requirement['condition'] ? 'Passed' : ($requirement['mandatory'] ? 'Failed' : 'Warning'); ?> + = $requirement['condition'] ? 'Passed' : ($requirement['mandatory'] ? 'Failed' : 'Warning') ?> | - =$requirement['by']; ?> + = $requirement['by'] ?> | - =$requirement['memo']; ?> + = $requirement['memo'] ?> |