I need to fill a bootstrap.widgets.TbButtonGroup like a Dropdownlist, i have this:
$models = ZfInfraestructuras::model()->findAll(array('order' => 'infraestructura_nombre'));
$list = CHtml::listData($models,
'infraestructura_id', 'infraestructura_nombre');
echo CHtml::dropDownList('infraestructuras', $models,
$list,
array('prompt' => 'Selecciona Infraestructura'));
And it works, but i need this:
<?php $this->widget('bootstrap.widgets.TbButtonGroup', array(
'type'=>'', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
'buttons'=>array(
array('label'=>'Selecciona Infraestructura',
'items'=>array($list),
)),
),
)); ?>
I dont need to use the variable $list, i just need the same result.
Thanks!