Parameters In Widget Actions


I have an action defined in CWidget like that

public function actions() {

‘uploadFile’ => array(

            'class' => '',

            //how to pass parameter to the action?



I want to pass parameter to this action, how to achieve that ?

Are you creating a CInputWidget or something else. If you are creating widget by extending with CInputWidget then i think you can pass parameters too.

Lets give it a try.

Thanks for your response

At the moment I implemented using session variable!

I will try it and inform you if it works!

Sure… :) i think it should work without any issue.Since this is the advantage of CInputWidget to get a parameters ;)