コード例 #1
0
 /**
  * @return \TYPO3\Flow\Error\Message
  */
 protected function getErrorFlashMessage()
 {
     #\TYPO3\Flow\var_dump($this->request->getArguments());
     switch ($this->actionMethodName) {
         case 'createAction':
             return new \TYPO3\Flow\Error\Message('Could not save form, because some fields are not filled out correctly');
         default:
             return parent::getErrorFlashMessage();
     }
 }
コード例 #2
0
 /**
  * Override getErrorFlashMessage to present nice flash error messages.
  *
  * @return \TYPO3\Flow\Error\Message
  */
 protected function getErrorFlashMessage()
 {
     switch ($this->actionMethodName) {
         case 'createAction':
             return new \TYPO3\Flow\Error\Error('Could not create the new comment');
         default:
             return parent::getErrorFlashMessage();
     }
 }