ZF-4231: Syntax error

Issue Type: Docs: Problem Created: 2008-09-09T08:56:31.000+0000 Last Updated: 2008-09-10T11:41:38.000+0000 Status: Resolved Fix version(s): - 1.6.1 (15/Sep/08)

Reporter: yann terrien (pozowebs) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:


Syntax error in Example 19.8. File form element usage:

there's a missing coma in the last addValidator, between 'Extension' and false.

$element = new Zend_Form_Element_File('foo'); $element->setLabel('Upload an image:') ->setDestination('/var/www/upload') ->addValidator('Count', false, 1) // ensure only 1 file ->addValidator('Size', false, 102400) // limit to 100K ->addValidator('Extension' false, 'jpg,png,gif'); // only JPEG, PNG, and GIFs $form->addElement($element, 'foo');


Posted by Matthew Weier O'Phinney (matthew) on 2008-09-10T11:41:38.000+0000

Fixed in trunk and 1.6 release branch; will release with 1.6.1

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.