-- Csányi András <[EMAIL PROTECTED]> wrote
(on Tuesday, 18 March 2008, 07:40 PM +0100):
> I have been reading the documentation for half an hours and i found
> little errors in the part of Zend_Form:
>
> - 15.2.1. Create a form object
> missing brackets
> $form = new Zend_Form;
If you are not passing arguments to a constructor, you don't need them.
> - 15.2.6. Putting it together
> has brackets
> $form = new Zend_Form();
> but/and - i don't know :) :
> - $username->addValidator('stringLength'...
> and
> - $password->addValidator('StringLength'...
> are different.
I actually purposely showed both as both are valid -- internally, we
ucfirst the string provided, so you can specify it either as
StringLength or stringLength.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/