Browse Source

Fixed GridView cells calling order

tags/2.0.0-rc
ElisDN 11 years ago
parent
commit
a615ef944a
  1. 15
      framework/grid/GridView.php

15
framework/grid/GridView.php

@ -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(),
$this->showHeader ? $this->renderTableHeader() : false,
$this->renderTableBody(),
$this->showFooter ? $this->renderTableFooter() : false,
$caption,
$columnGroup,
$tableHeader,
$tableFooter,
$tableBody,
]);
return Html::tag('table', implode("\n", $content), $this->tableOptions);

Loading…
Cancel
Save