Button linked to CJuiDialog in Yii
I want to have a button in my table1 _form.php that I wanted to link to a
CJuiDialog that contains a link to my table2 create.php. Can someone help
me out? I only have a button that is not yet linked with anything.
<?php $this->widget('bootstrap.widgets.TbButton', array(
'buttonType'=>'addshift',
'type'=>'primary',
'label'=>'Add Shift',
'url'=>'Yii::app()->createUrl("schedule/create",array("id"->$data->id))',
)); ?>
No comments:
Post a Comment