Hi everyone,
which component/class should I extend/override to apply a default afterSave behavior like Yii:log() to it ?
I’ve created a file into components folder like Testing.php and extend the CActiveRecord class but it doens’t seem to have any effect:
class Testing extends CActiveRecord {
protected function afterSave() {
parent::afterSave();
echo "Hi";
exit();
}
}
And I’m already importing it by default:
'import' => array(
'application.models.*',
'application.components.*',
...
Some tips about what am I missing ?