I believe he is calling addPrefixPath from the init method in a class that

extends Zend_Form_Element_Text. I wrote a blog post about this a while back

and he posted a comment in my blog saying the same thing so that's why I'm

guessing. :) The code works for me though (tried with 1.5.2 earlier today).



On Mon, 23 Jun 2008 08:53:03 -0400, Matthew Weier O'Phinney

<[EMAIL PROTECTED]> wrote:

> -- Rohit83 <[EMAIL PROTECTED]> wrote

> (on Monday, 23 June 2008, 02:23 AM -0700):

>>

>> Hi all I have written the custom validator for email verification

>> Now i added these validator on my form elelment by

>> $this->addPrefixPath('Custom_Validate', 'Custom/Validate/', 'validate');

> 

> You're setting the prefix path for the wrong object -- use

> addElementPrefixPath():

> 

>     $this->addElementPrefixPath('Custom_Validate', 'Custom/Validate/',

> 'validate');

> 

>> $mail->addValidator('EmailConfirmation', false, array('mail'));

>> But it gives me error

>> Uncaught exception 'Zend_Form_Exception' with message 'Invalid type

>> "VALIDATE" provided to getPluginLoader()

>> I am unable to resolve this

>> Can somebody help me out please

> 

> --

> Matthew Weier O'Phinney

> Software Architect       | [EMAIL PROTECTED]

> Zend Framework           | http://framework.zend.com/

-- 

Christer Edvartsen

http://cogo.wordpress.com/

Reply via email to