[TYPO3-mvc] Creating a dynamic back-button for error page
Claus Due
claus at wildside.dk
Wed Aug 10 11:18:52 CEST 2011
Hi Frank,
> I got a "simple" task: Validate a model property depending on the value of another property :).
>
> This is: Property 1 has to be required, if property 2 is empty and vice versa.
>
> My plan is to write a custom validator class but I would like to ask you as experts what would be
> the best point to do this ? Write a model validator or validate it in the controller ?
If I remember correctly, a while back Franz Koch (?) solved this by implementing a custom Validator to validate entire model objects, then ran that validator from the Controller and manually processed the errors returned.
Cheers,
Claus
More information about the TYPO3-project-typo3v4mvc
mailing list