コード例 #1
0
 /**
  * Hook that allows actions when the input is invalid
  *
  * When not rerouted, the form will be populated afterwards
  */
 protected function onInValid()
 {
     $this->addMessage(sprintf($this->_('Input error! Changes to %s not saved!'), $this->getTopic()));
     if ($this->_csrf) {
         if ($this->_csrf->getMessages()) {
             $this->addMessage($this->_('The form was open for too long or was opened in multiple windows.'));
         }
     }
 }