Commit 6bdf02dc by Qiang Xue

Fixes #2601

parent af33e821
...@@ -18,7 +18,7 @@ ArrayHelper::multisort($events, 'name'); ...@@ -18,7 +18,7 @@ ArrayHelper::multisort($events, 'name');
<h2>Event Details</h2> <h2>Event Details</h2>
<?php foreach($events as $event): ?> <?php foreach($events as $event): ?>
<div class="detailHeader h3" id="<?= $event->name.'-detail' ?>"> <div class="detailHeader h3" id="<?= $event->name.'-detail' ?>">
<?php echo $event->name; ?> <?= $event->name ?>
<span class="detailHeaderTag small"> <span class="detailHeaderTag small">
event event
<?php if(!empty($event->since)): ?> <?php if(!empty($event->since)): ?>
......
...@@ -36,7 +36,7 @@ ArrayHelper::multisort($events, 'name'); ...@@ -36,7 +36,7 @@ ArrayHelper::multisort($events, 'name');
<td> <td>
<?= ApiMarkdown::process($event->shortDescription, $event->definedBy, true) ?> <?= ApiMarkdown::process($event->shortDescription, $event->definedBy, true) ?>
<?php if(!empty($event->since)): ?> <?php if(!empty($event->since)): ?>
(available since version <?php echo $event->since; ?>) (available since version <?= $event->since ?>)
<?php endif; ?> <?php endif; ?>
</td> </td>
<td><?= $this->context->typeLink($event->definedBy) ?></td> <td><?= $this->context->typeLink($event->definedBy) ?></td>
......
...@@ -21,7 +21,7 @@ ArrayHelper::multisort($properties, 'name'); ...@@ -21,7 +21,7 @@ ArrayHelper::multisort($properties, 'name');
<?php foreach($properties as $property): ?> <?php foreach($properties as $property): ?>
<div class="detailHeader h3" id="<?= $property->name.'-detail' ?>"> <div class="detailHeader h3" id="<?= $property->name.'-detail' ?>">
<?php echo $property->name; ?> <?= $property->name ?>
<span class="detailHeaderTag small"> <span class="detailHeaderTag small">
<?= $property->visibility ?> <?= $property->visibility ?>
<?php if($property->getIsReadOnly()) echo ' <em>read-only</em> '; ?> <?php if($property->getIsReadOnly()) echo ' <em>read-only</em> '; ?>
...@@ -33,7 +33,7 @@ ArrayHelper::multisort($properties, 'name'); ...@@ -33,7 +33,7 @@ ArrayHelper::multisort($properties, 'name');
</span> </span>
</div> </div>
<div class="signature"><?php echo $this->context->renderPropertySignature($property); ?></div> <div class="signature"><?= $this->context->renderPropertySignature($property) ?></div>
<?= ApiMarkdown::process($property->description, $type) ?> <?= ApiMarkdown::process($property->description, $type) ?>
......
<?php if ($queryCount): ?> <?php if ($queryCount): ?>
<div class="yii-debug-toolbar-block"> <div class="yii-debug-toolbar-block">
<a href="<?= $panel->getUrl() ?>" title="Executed <?php echo $queryCount; ?> database queries which took <?= $queryTime ?>."> <a href="<?= $panel->getUrl() ?>" title="Executed <?= $queryCount ?> database queries which took <?= $queryTime ?>.">
DB <span class="label label-info"><?= $queryCount ?></span> <span class="label"><?= $queryTime ?></span> DB <span class="label label-info"><?= $queryCount ?></span> <span class="label"><?= $queryTime ?></span>
</a> </a>
</div> </div>
......
...@@ -18,5 +18,5 @@ echo "<?php\n"; ...@@ -18,5 +18,5 @@ echo "<?php\n";
<p> <p>
You may change the content of this page by modifying You may change the content of this page by modifying
the file <code><?= '<?php' ?> echo __FILE__; ?></code>. the file <code><?= '<?=' ?> __FILE__; ?></code>.
</p> </p>
...@@ -26,8 +26,8 @@ $this->params['breadcrumbs'][] = $this->title; ...@@ -26,8 +26,8 @@ $this->params['breadcrumbs'][] = $this->title;
<h1><?= "<?= " ?>Html::encode($this->title) ?></h1> <h1><?= "<?= " ?>Html::encode($this->title) ?></h1>
<?= "<?php " ?>echo $this->render('_form', [ <?= "<?= " ?>$this->render('_form', [
'model' => $model, 'model' => $model,
]); ?> ]) ?>
</div> </div>
...@@ -37,7 +37,7 @@ $this->params['breadcrumbs'][] = $this->title; ...@@ -37,7 +37,7 @@ $this->params['breadcrumbs'][] = $this->title;
</p> </p>
<?php if ($generator->indexWidgetType === 'grid'): ?> <?php if ($generator->indexWidgetType === 'grid'): ?>
<?= "<?php " ?>echo GridView::widget([ <?= "<?= " ?>GridView::widget([
'dataProvider' => $dataProvider, 'dataProvider' => $dataProvider,
'filterModel' => $searchModel, 'filterModel' => $searchModel,
'columns' => [ 'columns' => [
...@@ -69,13 +69,13 @@ if (($tableSchema = $generator->getTableSchema()) === false) { ...@@ -69,13 +69,13 @@ if (($tableSchema = $generator->getTableSchema()) === false) {
], ],
]); ?> ]); ?>
<?php else: ?> <?php else: ?>
<?= "<?php " ?>echo ListView::widget([ <?= "<?= " ?>ListView::widget([
'dataProvider' => $dataProvider, 'dataProvider' => $dataProvider,
'itemOptions' => ['class' => 'item'], 'itemOptions' => ['class' => 'item'],
'itemView' => function ($model, $key, $index, $widget) { 'itemView' => function ($model, $key, $index, $widget) {
return Html::a(Html::encode($model-><?= $nameAttribute ?>), ['view', <?= $urlParams ?>]); return Html::a(Html::encode($model-><?= $nameAttribute ?>), ['view', <?= $urlParams ?>]);
}, },
]); ?> ]) ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
...@@ -29,8 +29,8 @@ $this->params['breadcrumbs'][] = 'Update'; ...@@ -29,8 +29,8 @@ $this->params['breadcrumbs'][] = 'Update';
<h1><?= "<?= " ?>Html::encode($this->title) ?></h1> <h1><?= "<?= " ?>Html::encode($this->title) ?></h1>
<?= "<?php " ?>echo $this->render('_form', [ <?= "<?= " ?>$this->render('_form', [
'model' => $model, 'model' => $model,
]); ?> ]) ?>
</div> </div>
...@@ -31,16 +31,16 @@ $this->params['breadcrumbs'][] = $this->title; ...@@ -31,16 +31,16 @@ $this->params['breadcrumbs'][] = $this->title;
<p> <p>
<?= "<?= " ?>Html::a('Update', ['update', <?= $urlParams ?>], ['class' => 'btn btn-primary']) ?> <?= "<?= " ?>Html::a('Update', ['update', <?= $urlParams ?>], ['class' => 'btn btn-primary']) ?>
<?= "<?php " ?>echo Html::a('Delete', ['delete', <?= $urlParams ?>], [ <?= "<?= " ?>Html::a('Delete', ['delete', <?= $urlParams ?>], [
'class' => 'btn btn-danger', 'class' => 'btn btn-danger',
'data' => [ 'data' => [
'confirm' => Yii::t('app', 'Are you sure to delete this item?'), 'confirm' => Yii::t('app', 'Are you sure to delete this item?'),
'method' => 'post', 'method' => 'post',
], ],
]); ?> ]) ?>
</p> </p>
<?= "<?php " ?>echo DetailView::widget([ <?= "<?= " ?>DetailView::widget([
'model' => $model, 'model' => $model,
'attributes' => [ 'attributes' => [
<?php <?php
...@@ -56,6 +56,6 @@ if (($tableSchema = $generator->getTableSchema()) === false) { ...@@ -56,6 +56,6 @@ if (($tableSchema = $generator->getTableSchema()) === false) {
} }
?> ?>
], ],
]); ?> ]) ?>
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment