public function validate() { parent::validate(); if (!$this->name) { parent::error('Empty name'); $this->_errorFields[] = 'name'; } }
public function validate() { parent::validate(); $this->validateNotBlank($this->login, 'Login cannot be blank'); }
public function validate() { parent::validate(); if (!$this->name) { parent::error('Empty name'); $this->_errorFields[] = 'name'; } }
public function validate() { parent::validate(); $this->validateNotBlank($this->login, 'Login cannot be blank'); }