From 786163c13f742ff5ca11b91ddf408e89a4cd2a81 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 26 Oct 2013 19:30:21 -0400 Subject: [PATCH] Fixes #1075: changed the default value of GridView::empty. --- framework/yii/grid/GridView.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/yii/grid/GridView.php b/framework/yii/grid/GridView.php index 8a3196b..2981c82 100644 --- a/framework/yii/grid/GridView.php +++ b/framework/yii/grid/GridView.php @@ -89,6 +89,11 @@ class GridView extends BaseListView */ public $showFooter = false; /** + * @var string|boolean the HTML content to be displayed when [[dataProvider]] does not have any data. + * If false, the grid view will still be displayed (without body content though). + */ + public $empty = false; + /** * @var array|Formatter the formatter used to format model attribute values into displayable texts. * This can be either an instance of [[Formatter]] or an configuration array for creating the [[Formatter]] * instance. If this property is not set, the "formatter" application component will be used.