[TYPO3-mvc] Extbase 1.3 Model Validation In Controller
Philipp
philippwrann at gmx.at
Wed Aug 7 08:10:54 CEST 2013
You can use PropertyValidators and / or object Validators for that purpose
If a Property is ment to be an email address you should just add @validate EmailAddress to the docComment.
Just search for Extbase Validation
You can add own Validators as well like @validate \Vendor\ExtensionName\Domain\Validation\SomeValidator
This class needs to extend some abstract validator class or implement some validation interface. Just have a look at the core.
In your controller you can also do a Objectvalidation.
@validate $param \Vendor\ExtenstionName\Domain\Validation\SomeValidator
Like you can set a ignorevalidation flag there....
Thats the common way of handling validation in extbase. as far as i know.
More information about the TYPO3-project-typo3v4mvc
mailing list