Commit 3c642f0b by Luciano Baraglia

Example usage consistent with other widgets [skip ci]

parent 0b1fad20
...@@ -30,7 +30,7 @@ use yii\helpers\Inflector; ...@@ -30,7 +30,7 @@ use yii\helpers\Inflector;
* A typical usage of DetailView is as follows: * A typical usage of DetailView is as follows:
* *
* ~~~ * ~~~
* \yii\widgets\DetailView::widget(array( * echo DetailView::widget(array(
* 'model' => $model, * 'model' => $model,
* 'attributes' => array( * 'attributes' => array(
* 'title', // title attribute (in plain text) * 'title', // title attribute (in plain text)
...@@ -90,7 +90,7 @@ class DetailView extends Widget ...@@ -90,7 +90,7 @@ class DetailView extends Widget
* @var array the HTML attributes for the container tag of this widget. The "tag" option specifies * @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. * 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. * @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]] * This can be either an instance of [[Formatter]] or an configuration array for creating the [[Formatter]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment