Php YiBooster可编辑小部件内部的popover小部件
我正在使用yii1.1框架和clevertechyiibooster扩展构建网站 有没有一种简单的方法可以在popover小部件中呈现几个可编辑字段小部件 请参阅下面的代码。欢迎提出任何建议 主要观点:Php YiBooster可编辑小部件内部的popover小部件,php,yii,widget,yii-booster,Php,Yii,Widget,Yii Booster,我正在使用yii1.1框架和clevertechyiibooster扩展构建网站 有没有一种简单的方法可以在popover小部件中呈现几个可编辑字段小部件 请参阅下面的代码。欢迎提出任何建议 主要观点: .... $this->widget( 'booster.widgets.TbButton', array( 'label' => 'Right popover'
....
$this->widget(
'booster.widgets.TbButton', array(
'label' => 'Right popover',
'context' => 'warning',
'buttonType' => 'button',
'size' => 'extra_small',
'htmlOptions' => array(
'id' => uniqid(),
'data-html' => true,
'data-title' => 'A Title',
'data-placement' => 'right',
'data-content' => $this->renderPartial('VIEW', array('data'=>$data), true, true),
'data-toggle' => 'popover'
),
)
);
....
局部视图:
$this->widget('booster.widgets.TbEditableField', array(
'type' => 'text',
'model' => $survey,
'attribute' => 'text',
'pk' => 'pk',
'name' => 'name',
'text' => '',
'url' => $this->createUrl('controller/method/'), //url for submit data
'title' => 'text',
'placement' => 'right',
'id' => uniqid()),true);
$this->widget('booster.widgets.TbEditableField', array(
'type' => 'text',
'model' => $survey,
'attribute' => 'text',
'pk' => 'pk',
'name' => 'name',
'text' => '',
'url' => $this->createUrl('controller/method/'), //url for submit data
'title' => 'text',
'placement' => 'right',
'id' => uniqid()),true);
$this->widget('booster.widgets.TbEditableField', array(
'type' => 'text',
'model' => $survey,
'attribute' => 'text',
'pk' => 'pk',
'name' => 'name',
'text' => '',
'url' => $this->createUrl('controller/method/'), //url for submit data
'title' => 'text',
'placement' => 'right',
'id' => uniqid()),true);
你试过上面的代码吗?你有什么错误?是的,我试过那个代码。部分视图中没有用于小部件的javascript。