[TYPO3-mvc] ajax and validation

Philipp Wrann philippwrann at gmail.com
Tue Nov 25 11:56:04 CET 2014


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.


More information about the TYPO3-project-typo3v4mvc mailing list