ZF-5066: File validators aren't being included automatically
Description
In revision 12848 of the 1.7 branch, I have to manually add the prefix path for the file validators like this:
$element = new Zend_Form_Element_File('foo'); $element->addPrefixPath('Zend_Validate_File', 'Zend/Validate/File', 'validate'); $element->addValidator('Count', false, 1);
Otherwise, I get this exception: Zend_Loader_PluginLoader_Exception: Plugin by name 'Count' was not found in the registry; used paths: Zend_Validate_: Zend/Validate/
I'm assuming the prefix path used to be set automatically, because it's not mentioned in the documentation: http://framework.zend.com/manual/en/…
Comments
Posted by Thomas Weidner (thomas) on 2008-11-25T23:08:40.000+0000
Matthew, havn't you already fixed this in trunk ? There was an related issue the last days which you was also related to PluginLoader which you have fixed.
Posted by Thomas Weidner (thomas) on 2009-11-12T13:39:30.000+0000
Tested with actual release but not able to verify it. Looks like it's already been fixed in past.