[FLOW3-general] TYPO3.Form using RedirectFinisher with post
Bastian Waidelich
bastian at typo3.org
Mon Aug 13 10:55:28 CEST 2012
Robin Lehrmann wrote:
>> $this->formDefinition->createFinisher('TYPO3.Form:Closure')->setOption('closure',
>> function(\TYPO3\Form\Core\Model\FinisherContext $context) use
>> ($articleRepository) {
>> $formValues = $context->getFormValues();
>> $article = ...
>> $articleRepository->add($article;
>> });
> It is a php syntax mistake... Can you explain it, what you mean ?
Could you provide more details, please?
What kind of php syntax error do you get?
In your example "$this->formDefinition" is not defined, you can use
"$form" instead.
You can read more about closures here:
http://www.php.net/manual/en/class.closure.php
Best,
--
Bastian Waidelich
TYPO3 Core Team Member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the FLOW3-general
mailing list