2015-07-20 18:40:45 2644次浏览 1条回答 0 悬赏 10 金钱

yiibooster TbTabs如何嵌套 TbActiveForm或者在tab标签做个链接

  • 回答于 2015-07-27 16:36 举报

    可以考虑局部渲染

    $this->widget('bootstrap.widgets.TbTabs', array(
        'type'=>'tabs', 
        'tabs'=>array(
            array('label'=>'首页', 'content'=>'首页', 'active'=>true),
            array('label'=>'资料', 'content'=>$this->renderPartial('_form', array('data'=>$model))),
        ),
    ));
    

    在_form.php中使用TbActiveForm。

您需要登录后才可以回答。登录 | 立即注册
nodelog
助理

nodelog 厦门

注册时间:2014-12-10
最后登录:2020-04-21
在线时长:15小时13分
  • 粉丝5
  • 金钱0
  • 威望0
  • 积分150

热门问题