Action Parameter Binding in CAction

I really like the action parameter binding feature, it makes action code so much neater/cleaner.

I usually prefer to use CAction to create an action instead of using the inline action, but unfortunatly there doesnt seem to be support for parameter binding in CAction.

I could be wrong, perhaps I am missing something. If not, could this be added?

Thanks!

Bump!

According to the code, parameter binding is supported, if parameters are detected in the method:

http://code.google.com/p/yii/source/browse/tags/1.1.5/framework/web/actions/CInlineAction.php#29

That is, if you extend from CInlineAction (which extends from CAction)

Whoops, I think that’s for regular controller inline actions.

Parameter binding can be implemented as shown here:

http://www.yiiframework.com/forum/index.php?/topic/11572-caction-and-parameter-binding/page__p__56761__hl__caction#entry56761