View Single Post
  #2 (permalink)  
Old 03-28-2008, 12:34 PM
friedhelm friedhelm is offline
Junior Member
 
Join Date: Mar 2008
Posts: 12
Default Use Zend_Translate

Quote:
Originally Posted by mamyte03 View Post
Hello,
Now if textfield are empty write default message.
How can I change this message, without creating a new class who extends Zend_Validate_Abstract?
If I understand you correctly, you want to have a localized error message for your textfield?
If so, you should use Zend_Translate.
This might be of interest for you:
Akra’s DevNotes Blog Archive Simple Zend_Form Example
See comment 24-26.

To get the error codes, you can use
Code:
$this->getErrors()
in your view script.

/friedhelm
Reply With Quote