Exemplo n.º 1
0
 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());
     }
 }
Exemplo n.º 2
0
 public function afterValidate()
 {
     parent::afterValidate();
     if ($this->hasErrors()) {
         LuLu::setErrorMessage($this->getFirstErrors());
         LuLu::info($this->errors, self::className());
     }
 }