Want Event Feature

In MVC ,we have to write everything in controller.

In zend2 ,there is a feature of event.

I think we should add this feature in yii2.0 release.

Or if it is already in yii,let me know,so I came to know,how to use it.

I’m not sure if I understand your question correctly, but I think you might be looking for the (existing) CAction class. Within that class you can implement everything you need for 1 specific action. This class can then be registered on a controller with any action id you want.

For more information see:

CAction

CController.actions()

I am suggesting a move-model,operation,view ,event framework,like zend2 ,for yii,I am trying to study,what you have suggested,can be helpful to that or not.

https://github.com/yiisoft/yii2/issues/28 ?

Thanx for your link.Got good feedback.