Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
6bdf02dc
Commit
6bdf02dc
authored
Mar 02, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #2601
parent
af33e821
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
17 deletions
+17
-17
eventDetails.php
extensions/apidoc/templates/html/views/eventDetails.php
+1
-1
eventSummary.php
extensions/apidoc/templates/html/views/eventSummary.php
+1
-1
propertyDetails.php
extensions/apidoc/templates/html/views/propertyDetails.php
+2
-2
summary.php
extensions/debug/views/default/panels/db/summary.php
+1
-1
view.php
extensions/gii/generators/controller/templates/view.php
+1
-1
create.php
extensions/gii/generators/crud/templates/views/create.php
+2
-2
index.php
extensions/gii/generators/crud/templates/views/index.php
+3
-3
update.php
extensions/gii/generators/crud/templates/views/update.php
+2
-2
view.php
extensions/gii/generators/crud/templates/views/view.php
+4
-4
No files found.
extensions/apidoc/templates/html/views/eventDetails.php
View file @
6bdf02dc
...
@@ -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
))
:
?>
...
...
extensions/apidoc/templates/html/views/eventSummary.php
View file @
6bdf02dc
...
@@ -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>
...
...
extensions/apidoc/templates/html/views/propertyDetails.php
View file @
6bdf02dc
...
@@ -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
)
?>
...
...
extensions/debug/views/default/panels/db/summary.php
View file @
6bdf02dc
<?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>
...
...
extensions/gii/generators/controller/templates/view.php
View file @
6bdf02dc
...
@@ -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>
extensions/gii/generators/crud/templates/views/create.php
View file @
6bdf02dc
...
@@ -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>
extensions/gii/generators/crud/templates/views/index.php
View file @
6bdf02dc
...
@@ -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>
extensions/gii/generators/crud/templates/views/update.php
View file @
6bdf02dc
...
@@ -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>
extensions/gii/generators/crud/templates/views/view.php
View file @
6bdf02dc
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment