Where does My_Validate_PasswordConfirmation fit in the Zend framework?

I use the password confirmation validator from the official Zend framework document here:
http://framework.zend.com/manual/en/zend.form.elements.html

In Bootstrap.php, I set the namespace as 'namespace' => 'My _'

The file is located at Application /Validate/PasswordConfirmation.php

However, "Fatal error: Class" My_Validate_PasswordConfirmation "not found" is found in my Zend_Form.

What should I do to fix this problem?

+2
source share
1 answer

I designed and implemented Zend_Filter_Input, including its namespace function.

, . , , . , , , , .

, :

  • My_Validate_PasswordConfirmation
  • `application/My/Validate/PasswordConfirmation.php
  • namespace=>'My_Validate' Zend_Filter_Input.
  • "PasswordConfirmation".

update: . , . Zend_Filter_Input, Zend_Application bootstrap. , .

:

Zend_Loader_Autoloader_Resource , , , . , .

, :

'namespace' => 'My',

.

+4

Source: https://habr.com/ru/post/1710775/


All Articles