Example #1
0
 public function validate()
 {
     parent::validate();
     if (!$this->name) {
         parent::error('Empty name');
         $this->_errorFields[] = 'name';
     }
 }