Hi Guys!
I used the bootstrap ext specifically the tbmenu for my menu options how to make one of my label to be onclick and shows my modal…
$this->widget('bootstrap.widgets.TbMenu', array(
'type'=>'list',
'items'=>array(
array('label'=>'Departments','id'=>'myModal','icon'=>'icon-th-large','url'=>'#','visible'=>Yii::app()->user->checkAccess('superadmin'),
<div class="modal-body multi-column">
<?php
foreach($model as $model){
echo $model->dept."<br/>";
}
?>
</div>
<?php $this->endWidget(); ?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
'label'=>'Click me',
'type'=>'primary',
'htmlOptions'=>array(
'data-toggle'=>'modal',
'data-target'=>'#myModal',
),
)); ?>
//note the tbmenu is in column2 and the content of the modal is from one of my modules