Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Apply A Default Aftersave Behavior

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>