[TYPO3-mvc] Verify multiple action arguments at once
Peter Bücker
news.naag at gmx.net
Wed Jan 12 12:25:44 CET 2011
Hi all,
I'm currently looking for ways to verify multiple action arguments at
once. For example, a controller action may have 2 parameters:
/**
* @param integer $a
* @param integer $b
* return string
*/
public function fooAction($a, $b) {
// ...
}
Is there any way to validate something like $a > $b? If there is no such
thing, has anyone ever written a workaround? I was thinking about adding
a new method annotation like "@dontvalidateAll $a $b
Tx_Ext_Domain_Validation_Validator_FooValidator". As a hotfix, this
could be evaluated in a base controller's initializeAction() method if
I'm not totally wrong.
Thanks for your help!
Regards,
Peter
More information about the TYPO3-project-typo3v4mvc
mailing list