May I suggest you read the documentation before asking questions on the mailing list? I don't mean to be rude, but the documentation has all your answers and it supports a search form also. Failing that, run a google search using "site:http://framework.zend.com/manual/en" as a search term.
Pádraic Brady http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representative ________________________________ From: aoohralex <[email protected]> To: [email protected] Sent: Saturday, September 19, 2009 7:27:57 PM Subject: [fw-general] error messages in form I must create my own 3. error communicates for field - 'name' - in Symfony Framework it would be: $this->setValidators(array( 'name' => new sfValidatorString(array('min_length' => 2, 'max_length' => 50, 'trim' => true), array('required' => 'Name is required.', 'min_length' => 'Name is too short.', 'max_length' => 'Name is too long.')) )); In Zend Framework I have: $this->addElement('text', 'name', array( 'label' => 'Name:', 'required' => true, 'filters' => array('StripTags', 'StringTrim'), 'validators' => array( array('validator' => 'StringLength', 'options' => array(2, 50)), ) )); How can I add these 3. error communicates to that field above ?? Error communicates: - Name is required. - Name is too short. - Name is too long. -- View this message in context: http://www.nabble.com/error-messages-in-form-tp25524216p25524216.html Sent from the Zend Framework mailing list archive at Nabble.com.
