Esempio n. 1
0
 /**
  * Validate user input
  * @param array $input
  * @return boolean
  */
 public function validateInput($input)
 {
     if ($input = $this->getForm()->processInput($input)) {
         return $input;
     }
     $this->_controller->setVar('edit', true);
     $this->_controller->addMessage('error', 'There was a problem saving your data on this page.  Please correct the errors below and retry your request.');
     return false;
 }