Here's a pastebin: http://pastebin.com/m75ddcc6b

BaseForm usually contains my standard decorators and so on, but I've removed
all that to try and find the problem. AlnumExtra is my custom validator.


The case sensitivity problem is what I brought up here and exists in 1.5+:
http://www.nabble.com/Mixed-case-controller-names-spaces-in-controller-names-to16886114.html#a16907959

Zend_Controller has been built on the assumption that PHP is case sensitive
with class names, but PHP is not. Zend_Controller is in fact relying on case
sensitivity from the file system, which NTFS doesn't have. So with ZF 1.5+
on a Window servers, both /privacy-policy and /privacypolicy will load the
PrivacyPolicyController.php but will fail loading the view folder.


Matthew Weier O'Phinney-3 wrote:
> 
> -- 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/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Form-addElementPrefixPath-disables-Zend-Validators-tp18245929p18246899.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to