[TYPO3-mvc] Flexform and actions

Dawid Pacholczyk dpacholczyk at gmail.com
Sun Oct 24 12:01:37 CEST 2010


Thank you both. It works great :)

@Franz

Ofc i remember about annotations. I just forgot to paste it into email.

Best regards,
Dawid Pacholczyk

2010/10/23 Franz Koch <typo3.RemoveForMessage at elements-net.de>

> Hey,
>
>
>  Secong thing is where I use CREATE and invoke newAction I receive new.html
>> template BUT when I submit it it doesn`t add data to DB. Below my
>> createAction and form invoke in new.html
>>
>>
>>
>>       public function createAction($newPost) {
>>
>>             $this->postRepository->add($newPost);
>>
>>             $this->redirect('index');
>>
>>       }
>>
>
> Make sure you have proper method annotations - withouth them extbase can't
> map and validate the incoming data to a new object and it will be NULL.
>
> --
> kind regards,
> Franz Koch
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>



-- 
Dawid Pacholczyk
tel: 502-054-334
gg: 5564051
skype: dpacholczyk
http://typo3blog.pl (only polish version at the moment)


More information about the TYPO3-project-typo3v4mvc mailing list