Re: [fw-general] Zend_Form, shifting validation off the element onto the form object..

2011-04-11 Thread Matthew Weier O'Phinney
-- leedavis leedavi...@gmail.com wrote (on Friday, 08 April 2011, 07:15 AM -0700): The thing I cant get my head around, is, if forms can be in an error state using methods such as setError(s), addErrorMessage(s) etc. Then why cant we attach validators to a form object? Why are these limited

[fw-general] Zend_Form, shifting validation off the element onto the form object..

2011-04-08 Thread leedavis
Validating your data from a zend form object. In most cases validation would typically be attributed directly to the form element in question, for example validating an email address may use the EmailAddress validator shipped with ZF or you may want to create your own to ensure the email address