sacpv04
(Sacpv04)
1
Dear friends,
show dialog like this.
<?php echo CHtml::link('detail', '#', 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'=>'Detail',
'autoOpen'=>false,
),
));
echo 'dialog content here';
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>
But there is any ways that when we click to link, it will call the controller and display in dialog ?
thankyou very much
_uJJwAL
(_uJJwAL_)
2
Please use ajaxLink and then you can call the controller action and render your dialog box accordingly.
sukunj
(Mendparasukunj27)
3
Use one variable and store link in to that variable then replace # with that variable.