[TYPO3-mvc] Flexform and actions

Franz Koch typo3.RemoveForMessage at elements-net.de
Sat Oct 23 15:16:50 CEST 2010


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


More information about the TYPO3-project-typo3v4mvc mailing list