[FLOW3-core] Missing Parts in "The Definitive Guide" for Version 2.0

Bastian Waidelich bastian at typo3.org
Wed Jul 31 09:59:01 CEST 2013


Nico Thomaier wrote:

Hi Nico,

> in the Blog Example of the "The Definitive Guide" there is missing a
> important Code Line.
>
> Since the "Safe request methods" are read-only the SetupController won't
> persist it's Data until $this->persistenceManager->persistAll(); is called.


You refer to 
http://docs.typo3.org/flow/TYPO3FlowDocumentation/stable/TheDefinitiveGuide/PartII/Controller.html?highlight=setupcontroller#setup-controller 
I assume.

You're right, this won't work with 2.0 like this.

Instead of adding a *persistAll()* it would be nicer to have the 
indexAction() render a form pointing to 
*SetupController::createPostsAction()* but without Fluid that's not so 
straightforward..

The code examples could also use some cleanup to conform with the latest 
CGL by the way


-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-team-core mailing list