如何在zend 1中为电子邮件ID设置一条错误消息

时间:2016-06-22 08:17:19

标签: php zend-framework

这是我的电子邮件表格:

$this->addElement('text', 'Email', array(
        'label'      => 'Email address:',
        'required'   => true,
        'filters'    => array('StringTrim'),
        'validators' => array(
            'EmailAddress',
             array('Db_NoRecordExists', true, array(
                    'table' => 'users', 
                    'field' => 'email',
                    'messages' => array(
                        'recordFound' => 'Email already taken',

                    )
                )
            )
      )));

输出:Here is the many error message i am getting

0 个答案:

没有答案