[Flow] Beginner Questions

Bastian Waidelich bastian at typo3.org
Mon Jan 13 17:27:11 CET 2014


Steffen Wickham wrote:

Hi Steffen and Jan,

> if you try to call your createAction() through your browser by typing in
> the url directly (e.g. www.domain.com/vendor.package/controller/create)
> you send a GET request to the server which is considered as "safe
> request", which means that no data will be safed. [...]

Exactly. And because that comes up a lot, here a link to the 
documentation with some more background information:
http://docs.typo3.org/flow/TYPO3FlowDocumentation/latest/TheDefinitiveGuide/PartIII/Persistence.html#safe-request-methods-are-read-only


> $this->persistenceManager->persistAll();
> But handle with care! Don't use this way too much!

Yes. Instead you should turn your "create" link/form to a form with 
method="post" and/or create a command[1] that allows you to create 
accounts via the command line.


[1] 
http://docs.typo3.org/flow/TYPO3FlowDocumentation/latest/TheDefinitiveGuide/PartIII/CommandLine.html

-- 
Bastian Waidelich


More information about the Flow mailing list