Closed almix closed 11 years ago
I believe it was moved out of of yiistrap and into 2amigos/yiiwheels. I was actually looking for the same widget and using https://github.com/2amigos/yiiwheels/blob/master/widgets/detail/WhDetailView.php seems to work fine:
<?php $this->widget('yiiwheels.widgets.detail.WhDetailView',array(
'data' => $model,
'attributes' => array(
'id',
'username',
'password',
'email',
),
)); ?>
Also see Issue #21 for the official answer...
This issue seems to be fixed.
@dmccorry, the easiest way to migrate this is to use the default zii.widgets.CDetailView
widget with custom class attributes. The TbDetailView
widget is doing the exact same thing.
<?php $this->widget('zii.widgets.CDetailView',array(
'htmlOptions' => array(
'class' => 'table table-striped table-condensed table-hover',
),
'data' => $model,
'attributes' => array(
'id',
'username',
'password',
'email',
),
)); ?>
It was in yii-auth, I implement yiistrap there, what need use instead TbDetailView?