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?



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

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: