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
86d747d0
Commit
86d747d0
authored
Apr 19, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2801 from ElisDN/gridview-footer
Get gridview footer content after cells content
parents
29b9a92a
8e48dcaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
GridView.php
framework/grid/GridView.php
+10
-5
No files found.
framework/CHANGELOG.md
View file @
86d747d0
...
...
@@ -5,6 +5,7 @@ Yii Framework 2 Change Log
--------------------------
-
Bug #2563: Theming is not working if the path map of the theme contains ".." or "." in the paths (qiangxue)
-
Bug #2801: Fixed the issue that GridView gets footer content before data cells content (ElisDN)
-
Bug #3042:
`yii\widgets\Pjax`
should end application right after it finishes responding to a pjax request (qiangxue)
-
Bug #3066:
`yii\db\mssql\Schema::getTableSchema()`
should return null when the table does not exist (qiangxue)
-
Bug #3091: Fixed inconsistent treatment of
`Widget::run()`
when a widget is used as a container and as a self-contained object (qiangxue)
...
...
framework/grid/GridView.php
View file @
86d747d0
...
...
@@ -237,12 +237,17 @@ class GridView extends BaseListView
*/
public
function
renderItems
()
{
$caption
=
$this
->
renderCaption
();
$columnGroup
=
$this
->
renderColumnGroup
();
$tableHeader
=
$this
->
showHeader
?
$this
->
renderTableHeader
()
:
false
;
$tableBody
=
$this
->
renderTableBody
();
$tableFooter
=
$this
->
showFooter
?
$this
->
renderTableFooter
()
:
false
;
$content
=
array_filter
([
$
this
->
renderCaption
()
,
$
this
->
renderColumnGroup
()
,
$t
his
->
showHeader
?
$this
->
renderTableHeader
()
:
false
,
$t
his
->
showFooter
?
$this
->
renderTableFooter
()
:
false
,
$t
his
->
renderTableBody
()
,
$
caption
,
$
columnGroup
,
$t
ableHeader
,
$t
ableFooter
,
$t
ableBody
,
]);
return
Html
::
tag
(
'table'
,
implode
(
"
\n
"
,
$content
),
$this
->
tableOptions
);
...
...
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