[TYPO3-mvc] Fluid validation: how to debug errors?

Xavier Perseguers typo3 at perseguers.ch
Fri Sep 25 14:49:35 CEST 2009


Hi Bastian,

>> Tx_Fluid_Core_RuntimeException: No validator found for argument name 
>> "as" with type "string" in view helper 
> 
> I think, the problem is that StringValidator is not loaded.
> Can you quickly check, whether adding the line
> 
> 'tx_extbase_validation_validator_stringvalidator' => 
> $extensionClassesPath . 'Validation/Validator/StringValidator.php',
> 
> to extbase's ext_autoload.php fixes the problem for you?

Yes, it fixes the problem. All validators (I mean bunch of them) are already automatically loaded in the ext_autoload.php file, seems that the dev who added stringvalidator forgot about this detail ;-)

Thanks.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away


More information about the TYPO3-project-typo3v4mvc mailing list