public function afterValidate() { parent::afterValidate(); if (!$this->hasErrors()) { if ($this->userValidate) { $this->finalValidate(); } } if ($this->hasErrors()) { LuLu::setErrorMessage($this->getFirstErrors()); LuLu::info($this->errors, 'validate error:' . self::className()); } }
public function afterValidate() { parent::afterValidate(); if ($this->hasErrors()) { LuLu::setErrorMessage($this->getFirstErrors()); LuLu::info($this->errors, self::className()); } }