How To Get Widget From Componet Class?

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(



        'title'=>'Company Logs',


        'autoOpen'=>false, //important!






echo '<div id="log_response"></div>';