Commit 51f64ffe by Qiang Xue

Merge pull request #670 from lucianobaraglia/upstream

DetailView example usage consistent with other widgets [skip ci]
parents 0b1fad20 3c642f0b
...@@ -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