I was looking at the event handling in Yii and I am not sure if I do understand it correctly. Say I would like to always do something before an activeRecord is saved.
Usually I would override beforeSave() (also calling the parent implementation).
But it seems like I could also attach an event to my activeRecord class like this:
Are there any tutorials or good examples about this? When should I use events?
The onBeforeSave() method should not be overriden, right?