[FLOW3-core] "Getting Startet" - Documentation - Some incorrect/missing parts which makes it hard to follow

Christian Bülter buelter at kennziffer.com
Wed Nov 7 16:15:06 CET 2012


Hi,

a late reply to this one because I stumbled over it right now.

The code which is missing can be found here:

https://svn.typo3.org/FLOW3/Packages/Blog/branches/GettingStarted/Classes/Controller/PostController.php

But the code has to be slightly changed to work with the current version 
of TYPO3 Flow since the result must not be a string but an object:

/**
	 * Override getErrorFlashMessage to present nice flash error messages.
	 *
	 * @return string
	 */
	protected function getErrorFlashMessage() {
		switch ($this->actionMethodName) {
			case 'createAction' :
				return new \TYPO3\FLOW3\Error\Error('Could not create the new post:');
			default :
				return parent::getErrorFlashMessage();
		}
	}

Greetings,

Christian

Am 23.03.2012 23:45, schrieb Alexander Kappler:
> 4.) In section "validation" of the  "Part II: Getting Started":
> - The code for the postControler changes and explanation to displaying the error msg:
> "Could not create the new Post" is missing.
 > Therefore an system-error message appears.



More information about the FLOW3-team-core mailing list