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
a2e25bf1
Commit
a2e25bf1
authored
Jun 08, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3739 from umneeq/gii-codestyle-fixes-2
Fix Gii template variables order
parents
09e6a13e
c9f79a2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
controller.php
extensions/gii/generators/crud/default/controller.php
+1
-1
index.php
extensions/gii/generators/crud/default/views/index.php
+1
-1
No files found.
extensions/gii/generators/crud/default/controller.php
View file @
a2e25bf1
...
...
@@ -68,8 +68,8 @@ class <?= $controllerClass ?> extends <?= StringHelper::basename($generator->bas
$dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
return $this->render('index', [
'dataProvider' => $dataProvider,
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
<?php
else
:
?>
$dataProvider = new ActiveDataProvider([
...
...
extensions/gii/generators/crud/default/views/index.php
View file @
a2e25bf1
...
...
@@ -19,8 +19,8 @@ use <?= $generator->indexWidgetType === 'grid' ? "yii\\grid\\GridView" : "yii\\w
/**
* @var yii\web\View $this
* @var yii\data\ActiveDataProvider $dataProvider
<?=
!
empty
(
$generator
->
searchModelClass
)
?
" * @var "
.
ltrim
(
$generator
->
searchModelClass
,
'\\'
)
.
"
\$
searchModel
\n
"
:
''
?>
* @var yii\data\ActiveDataProvider $dataProvider
*/
$this->title =
<?=
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
;
...
...
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