0
我已經創建了Yii Bootstrap TbMenu。如何動態添加活動類?YiiBooster TbMenu添加類active動態
$this->widget('bootstrap.widgets.TbMenu',
array(
'type' => 'list',
'items' => array(
array(
'label' => 'Home',
'url' => '#',
'itemOptions' => array('class' => 'active')
),
array('label' => 'Library', 'url' => '#'),
array('label' => 'Applications', 'url' => '#'),
)
)
);