June 08, 2013
VmWare9 on OpenSuse 12.3Yii Jquery Dialog -HowTo-
<?php
echo CHtml::link('open dialog', '#', array(
'onclick'=>'$("#mydialog").dialog("open"); return false;',
));
?>
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id'=>'mydialog',
// additional javascript options for the dialog plugin
'options'=>array(
'title'=>'Dialog box 1',
'autoOpen'=>false,
),
));
echo 'dialog content here';// ->What to show in the dialog.
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>Using this, you can open a modal dialog in your view to show what you need.