is it possible pass parameters to action provider widget?
In cotroller:
public function actions(){
return array(
// naming the action and pointing to the location
// where the external action class is
'comment.'=> array(
'class'=>'application.components.pack.comments.CommentActionProvider',
'owner'=>$this->loadModel(),
)
);
}
Action provider widget
class CommentActionProvider extends CWidget
{
public static function actions()
{
return array (
// naming the action and pointing to the location
// where the external action class is
'create' => 'application.components.pack.comments.actions.create',
);
}
}
You could try some framework debugging (also a good oportunity to learn more about the internal mechanics). I would temporarily add some print_r() to some framework files - do not forget to remove them right after!
In your case i’d look at web/CController.php around line 430: createActionFromMap(). From looking at that code i’d say, it should merge all parameters into $config - but maybe somethings wrong there.
Could you maybe write that up in a manual comment or create a wiki for it? I think, this question already came up several times and the solution is not really documented clearly. Or maybe change your bug report to rather update the class reference and include a simple example.