我使用扩展名EFullcalendarheart,通过点击事件后会弹出。但功能不会加载到预期的控制器中。
- 控制器
public function actionView2($id)
{
$this->renderPartial('view2',
array('model'=>$this->loadModel($id)),false,true
);
}
- 视图
<?php $this->widget('ext.fullcalendar.EFullCalendarHeart', array(
// 'themeCssFile'=>'cupertino/jquery-ui.min.css',
'options'=>array(
'header'=>array(
'left'=>'prev,today,next',
'center'=>'title',
'right'=>'month',
//'right'=>',agendaWeek,agendaDay'
),
'events'=> $this->createUrl('peminjaman/calendarevents'),
'eventClick'=> 'js:function(calEvent, jsEvent, view) {
$("#myModalHeader").html(calEvent.title);
$("#myModalBody").load("'.Yii::app()->createUrl("peminjaman/view2/id/").'"+calEvent.id);
$("#myModal").modal();
}',
)));
?>
<?php $this->beginWidget(
'booster.widgets.TbModal',
array('id' => 'myModal')
); ?>
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4 id="myModalHeader"></h4>
</div>
<div class="modal-body" id="myModalBody">
<p>----</p>
</div>
<div class="modal-footer">
<?php $this->widget(
'booster.widgets.TbButton',
array(
'label' => 'Close',
'url' => '#',
'htmlOptions' => array('data-dismiss' => 'modal'),
)
); ?>
</div>
<?php $this->endWidget(); ?>
如何解决它,为我制作弹出视图事件或输入详细信息。提前谢谢