ZF-5066: File validators aren't being included automatically

Issue Type: Bug Created: 2008-11-25T21:47:31.000+0000 Last Updated: 2009-11-12T13:39:31.000+0000 Status: Resolved Fix version(s): - 1.9.6 (24/Nov/09)

Reporter: Jon Lesser (jonlesser) Assignee: Thomas Weidner (thomas) Tags: - Zend_Form

Related issues: Attachments:


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:…


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.