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

Using this, you can open a modal dialog in your view to show what you need.

ddemuro
administrator

Sr. Software Engineer with over 10 years of experience. Hobbist photographer and mechanic. Tinkering soul in an endeavor to better understand this world. Love traveling, drinking coffee, and investments.

You may also like

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: