-- KyleMac <[EMAIL PROTECTED]> wrote
(on Wednesday, 02 July 2008, 01:20 PM -0700):
> I just can't get custom validators to work properly. I want to be able
> to use the validators in addElement with the shorthand name, i.e. just
> "Regex".
> 
> The closet I can get to them working is:
> 
> $form->addElementPrefixPath('KM_Validate', 'Validate/',
> Zend_Form_Element::VALIDATE);
> 
> But now none of the Zend validators work, for example: 'File
> NotEmpty.php was loaded but class named KM_Validate_NotEmpty was not
> found within it.' So it is still looking in Zend/Validate but is not
> trying the correct class prefix.

Can you provide the full form definition, possibly in a pastebin
somewhere? There are tests for this exact situation, and I've written
applications and tutorials that do exactly this without any problems. My
inclination is that there is something else in your form definition
causing problems.

> PS. Is the case sensitivity problem in Zend_Controller on NTFS going
> to be fixed? If my production server ran Windows I'd consider it a
> show stopper.

What case sensitivity issue are you referring to?

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to