Blog

<?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');
?>

By using this you can open a modal dialog in your view to show what ever you need.

You may also like

Leave a Reply

Recent Comments