In ActiveRecord, I’m using events like beforeSave a lot, both in models and in behaviors.
I’m trying to accomplish the same thing with CController::beforeRender(), but have some questions:
-
Why doesn’t the default CController::beforeRender() raise an event to be picked up by behaviors?
-
What is the proper way to do this?