Hello friends,
I want to get dialouge box from component funciton.Because requirement for all views are same as below code So I don’t want to paste below code at everywhere.
I have tried it with components/Controller.php and its working but i want to know how to call it from component helper class?
E.g. i have helper component and i want to use it like helper::getDialogueBox($params);
So need your suggestions.
//the dialog
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id'=>'dialog_box',
'options'=>array(
'title'=>'Company Logs',
'theme'=>'redmond',
'autoOpen'=>false, //important!
'modal'=>true,
'width'=>"80%",
'height'=>470,
),
));
echo '<div id="log_response"></div>';
$this->endWidget();