【发布时间】:2013-12-04 08:33:54
【问题描述】:
我正在使用 PHP Yii 框架,遇到了一个关于将 Id 和其他属性添加到选项卡的问题。顺便说一下,我正在使用 yii bootstrap 作为扩展:
$tabs = array(
'item1' => array(
'label' => 'label1',
'content' => $content1,
),
'preview' => array(
'label' => 'Preview',
),
);
$this->widget('bootstrap.widgets.TbWizard',
array(
'id' => 'harvest-tabs',
'type' => 'tabs',
'tabs' => $tabs,
'pagerContent' => false,
));
如何为每个选项卡“item1”和“预览”添加“id”和“类”属性? 我试过了:
'item1' => array(
'label' => 'label1',
'content' => $content1,
'id' => 'some id'
'class' => 'some class'
),
'preview' => array(
'label' => 'Preview',
'id' => 'some other id'
'class' => 'some other class'
),
但这并没有给它添加一个类。我只看到<li>'s
用作选项卡的容器。对不起,我是这里的新手。我会很感激任何帮助谢谢!
【问题讨论】:
标签: php class twitter-bootstrap yii