models/CiiSettingsModel.php
protected function afterSave()
	{
	    if($this->hasEventHandler('onAfterSave'))
	        $this->onAfterSave(new CEvent($this));

	    // Store new config values in cache
	    foreach($this->attributes as $key=>$value)
	    	Yii::app()->cache->set('settings_'.$key, $value);

	    return true;
	}
protected function afterSave()
	{
	    if($this->hasEventHandler('onAfterSave'))
	        $this->onAfterSave(new CEvent($this));

	    // Store new config values in cache
	    foreach($this->attributes as $key=>$value)
	    	Yii::app()->cache->set('settings_'.$key, $value);

	    return true;
	}
protected function afterSave ( ) { if ( $ this -> hasEventHandler ( 'onAfterSave' ) ) $ this -> onAfterSave ( new CEvent ( $ this ) ) ; // Store new config values in cache foreach ( $ this -> attributes as $ key => $ value ) Yii :: app ( ) -> cache -> set ( 'settings_' . $ key , $ value ) ; return true ; }
Allow for afterSave events
@return bool   If afterSave passed
Allow for afterSave events