[TYPO3-mvc] How to register a custom validator

Peter Niederlag typo3-list at niekom.de
Tue Apr 12 11:59:11 CEST 2011


Hello,

Am 12.04.2011 11:49, schrieb François Suter:
> Hi all,
[...]
> but that leads to an exception about the validator for "BirthYear" not
> being found. I also tried to use the "full" name of the validator:
>
> * @validate Tx_Latourrisk_Domain_Validator_BirthYear
>
> without more success. While not entirely surprised, the question is then
> what is wrong in the above setup?

Doublde Cross Check the spelling. It might also be required to end in 
'Validator'.

@validate Tx_Foo_Validation_Validator_DateValidator(minAge=18)

works for me.

Greets,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-project-typo3v4mvc mailing list