From 3c642f0b9c3c1e084411d772f6749cae55a9f430 Mon Sep 17 00:00:00 2001 From: Luciano Baraglia Date: Sun, 28 Jul 2013 01:32:46 -0300 Subject: [PATCH] Example usage consistent with other widgets [skip ci] --- framework/yii/widgets/DetailView.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/widgets/DetailView.php b/framework/yii/widgets/DetailView.php index c9fca12..f887db4 100644 --- a/framework/yii/widgets/DetailView.php +++ b/framework/yii/widgets/DetailView.php @@ -30,7 +30,7 @@ use yii\helpers\Inflector; * A typical usage of DetailView is as follows: * * ~~~ - * \yii\widgets\DetailView::widget(array( + * echo DetailView::widget(array( * 'model' => $model, * 'attributes' => array( * 'title', // title attribute (in plain text) @@ -90,7 +90,7 @@ class DetailView extends Widget * @var array the HTML attributes for the container tag of this widget. The "tag" option specifies * what container tag should be used. It defaults to "table" if not set. */ - public $options = array('class' => 'table table-striped'); + public $options = array('class' => 'table table-striped table-bordered'); /** * @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]]