konapaz
(Konapaz)
1
Hi
I have an action defined in CWidget like that
public function actions() {
‘uploadFile’ => array(
'class' => 'path.to.action',
//how to pass parameter to the action?
)
}
I want to pass parameter to this action, how to achieve that ?
jayant
(Codesutras)
2
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.
konapaz
(Konapaz)
3
Thanks for your response
At the moment I implemented using session variable!
I will try it and inform you if it works!
jayant
(Codesutras)
4
Sure… i think it should work without any issue.Since this is the advantage of CInputWidget to get a parameters