/** * Check for the form errors * * @return boolean */ public function isValid() { $validActions = array('validateInput', 'delete'); return in_array($this->currentAction, $validActions) ?: parent::isValid(); }
/** * Check for the form errors * * @return boolean */ public function isValid() { return 'validateInput' === $this->currentAction ?: parent::isValid(); }