0
如何将文本TbButton引导程序转换为Yii中的CHtml :: link?下面 是TBBUTTON引导代码:将代码格式转换为CHtml :: link Yii
$this->widget('bootstrap.widgets.TbButton', array(
'label'=>'Data Protection Policy - Must Read for Consultant',
'type'=>'primary', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
'htmlOptions'=>array('class'=>'addContactBtn','onclick'=>'js:(function(){
$("#pdpaModal").modal({"show":true});
return false;
})();')));
我需要将代码转换成以上了CHtml:
但是,我上的onClick部分错误。任何人都可以帮我解决它吗?谢谢。
非常感谢你。它适用于第一个选项。 :) – Verlee 2014-09-11 03:32:25