[TYPO3-mvc] set validation rules at runtime

Thomas Mammitzsch thomas at visualworx.de
Wed Jun 16 14:44:39 CEST 2010


hi list,

i'm curious if i can set validation rules for model properties at 
runtime and not by staticly defining them in the phpdoc for the object 
property. Where would i do that? In the Controller?

Use-Case: i display a form, which is dynamicly built by the backend user 
(similar to powermail). The backend user should also decide if a certain 
field is mandatory or not and what it should be validated against. So 
defining validation in the model won't work.

regards, Thomas


More information about the TYPO3-project-typo3v4mvc mailing list