Articles Posted in the " Yii Before Save " Category

  • Yii Model Before Save

    Yii Model Before Save

    beforeSave() beforeSave() class Mytable extends CActiveRecord { // Format 1     public function beforeSave()      {         if($this->isNewRecord)         {              […]