Skip to content

Commit

Permalink
Removed sorter from the default display of ListView.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Sep 8, 2013
1 parent 263dbd2 commit 02e3b45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions framework/yii/grid/GridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,6 @@ class GridView extends ListViewBase
* Both "format" and "label" are optional. They will take default values if absent.
*/
public $columns = array();
/**
* @var string the layout that determines how different sections of the list view should be organized.
* The following tokens will be replaced with the corresponding section contents:
*
* - `{summary}`: the summary section. See [[renderSummary()]].
* - `{items}`: the list items. See [[renderItems()]].
* - `{sorter}`: the sorter. See [[renderSorter()]].
* - `{pager}`: the pager. See [[renderPager()]].
*/
public $layout = "{items}\n{summary}\n{pager}";
public $emptyCell = ' ';
/**
* @var \yii\base\Model the model that keeps the user-entered filter data. When this property is set,
Expand Down
2 changes: 1 addition & 1 deletion framework/yii/widgets/ListViewBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract class ListViewBase extends Widget
* - `{sorter}`: the sorter. See [[renderSorter()]].
* - `{pager}`: the pager. See [[renderPager()]].
*/
public $layout = "{summary}\n{sorter}\n{items}\n{pager}";
public $layout = "{summary}\n{items}\n{pager}";


/**
Expand Down

0 comments on commit 02e3b45

Please sign in to comment.