Пример #1
0
 public function afterSave($insert, $changedAttributes)
 {
     parent::afterSave($insert, $changedAttributes);
     if ($insert) {
         UcenterUtil::register($this->username, $this->password, $this->email);
     }
 }