Пример #1
0
 public function validate()
 {
     parent::validate();
     if (!$this->name) {
         parent::error('Empty name');
         $this->_errorFields[] = 'name';
     }
 }
Пример #2
0
 public function validate()
 {
     parent::validate();
     $this->validateNotBlank($this->login, 'Login cannot be blank');
 }