I\'m working on a PHP/MySQL app using the Yii framework.
I\'ve come across the following situation:
In my VideoController, I have a actionCrea
No you are right. The transaction is delegated by the "create" method which is what a controller is supposed to do. Your suggestion of using a 'wrapper' like beforeAction() is the way to go. Just make the controller extend or implement this class. It looks like you are looking for an Observer type pattern or a factory-like implementation.