[TYPO3-mvc] ajax and validation

Matthew Colton mat.colton at web-xs.de
Tue Nov 25 12:33:34 CET 2014


Use a PHP as a viewpattern? Why not use a viewhelper?

Cheers
Matthew

Am 25.11.2014 um 11:56 schrieb Philipp Wrann:
> You could realize that in the initializeCreateAction
>
> Maybe you can simply detect the type and if its ajax switch your
> prefered view, then you can render the validation in a php view for
> example.
> You would have to place a New.php file in your templates folder and
> set the viewpattern to php.
>
> In that php file you can return a json_encode with your falttened
> validation errors.
>
> I have never done this that way but it should be possible.
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>



More information about the TYPO3-project-typo3v4mvc mailing list