[TYPO3-mvc] How to register a custom validator

Marc Bastian Heinrichs typo3 at mbh-web.de
Tue Apr 12 16:13:40 CEST 2011


Hey,

> AFAIK it's possible to create custom validators, but I couldn't find any 
> information about how to write and register them properly.
> 
> In my extension I have created the following structure:
> 
> Classes > Domain > Validator > BirthYear.php
> 
> Inside the PHP file, the class is called:
> 
> Tx_Myext_Domain_Validator_BirthYearValidator

The filename is not correct. To be in sync with the classname
it has to be BirthYearValidator.php


Best
Marc Bastian


More information about the TYPO3-project-typo3v4mvc mailing list