Hi I’m jsut wondering how you turn the default validator: inArrayValidator off in form ini files, I can turn it off in my controller like so:
$oForm->getElement("sitename")->setRegisterInArrayValidator(false);
I want to be able to do it in my .ini as to not clutter up my controller:
I have tried the following:
elements.0.type = "select"
elements.0.name = "sitename"
elements.0.options.label = "Site name"
elements.0.options.validators.inarrayvalidator = false
But this doesn’t work, I get the following error:
Plugin by name '' was not found in the registry; used paths:\nZend_Validate_: Zend\/Validate\/
Any ideas?
Thanks
In your ini file, you should reference
registerInArrayValidatorinstead ofinArrayValidatorsince the actual property inZend_Formis calledregisterInArrayValidator.The following config works: