Пример #1
0
 public function init()
 {
     parent::init();
     $this->customer_id = Yii::$app->user->id;
     $this->money = $this->status = $this->integral = $this->reference_no = 0;
     $this->level = 1;
     $this->attachEvents();
 }
Пример #2
0
 public function init()
 {
     $this->type = static::CMS_TYPE;
     if ($this->isNewRecord) {
         $this->created_at = $this->updated_at = time();
     } else {
         $this->updated_at = time();
     }
     parent::init();
 }
Пример #3
0
 public function init()
 {
     parent::init();
     $this->attachEvents();
 }
Пример #4
0
 public function init()
 {
     parent::init();
     $this->initModel();
 }
Пример #5
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->initConfig();
 }
Пример #6
0
 public function init()
 {
     parent::init();
     $this->key = Yii::$app->security->generateRandomString();
 }