<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Custom validators for Zend_Form_Element</title>
	<atom:link href="http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/feed/" rel="self" type="application/rss+xml" />
	<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/</link>
	<description>Christer Edvartsen's blog about ... things!</description>
	<pubDate>Sat, 05 Jul 2008 18:45:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: christer</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4889</link>
		<dc:creator>christer</dc:creator>
		<pubDate>Mon, 23 Jun 2008 08:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4889</guid>
		<description>@Rohit: I need some more information to help you with this. What version of ZF are you using?

I'm guessing it's the addPrefixPath in the different elements that causes the error. I have alimost the same code as above in a project that uses ZF-1.5.2 and it works fine.

If you follow the stack trace you can see what causes the error...</description>
		<content:encoded><![CDATA[<p>@Rohit: I need some more information to help you with this. What version of ZF are you using?</p>
<p>I&#8217;m guessing it&#8217;s the addPrefixPath in the different elements that causes the error. I have alimost the same code as above in a project that uses ZF-1.5.2 and it works fine.</p>
<p>If you follow the stack trace you can see what causes the error&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4888</link>
		<dc:creator>Rohit</dc:creator>
		<pubDate>Mon, 23 Jun 2008 08:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4888</guid>
		<description>Hi i have following error when i try to run above code,will you help me
Uncaught exception 'Zend_Form_Exception' with message 'Invalid type "VALIDATE" provided to getPluginLoader()'</description>
		<content:encoded><![CDATA[<p>Hi i have following error when i try to run above code,will you help me<br />
Uncaught exception &#8216;Zend_Form_Exception&#8217; with message &#8216;Invalid type &#8220;VALIDATE&#8221; provided to getPluginLoader()&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4868</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 11 Jun 2008 15:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4868</guid>
		<description>Ha! Never mind. The documentation on http://framework.zend.com/manual/en/zend.form.forms.html#zend.form.forms.config is incorrect. I have filed a bug. All the *refixPaths should be singular "prefixPath"</description>
		<content:encoded><![CDATA[<p>Ha! Never mind. The documentation on <a href="http://framework.zend.com/manual/en/zend.form.forms.html#zend.form.forms.config" rel="nofollow">http://framework.zend.com/manual/en/zend.form.forms.html#zend.form.forms.config</a> is incorrect. I have filed a bug. All the *refixPaths should be singular &#8220;prefixPath&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4867</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 11 Jun 2008 15:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4867</guid>
		<description>Pretty nice. I have this working fine when I use a custom Zend_Form. However, I cannot get it to work when building my form from a config/ini file. I keep getting the same error as post #5, that the validator plugin cannot be found. Any suggestions on what to add where so that the prefix path is found correctly?</description>
		<content:encoded><![CDATA[<p>Pretty nice. I have this working fine when I use a custom Zend_Form. However, I cannot get it to work when building my form from a config/ini file. I keep getting the same error as post #5, that the validator plugin cannot be found. Any suggestions on what to add where so that the prefix path is found correctly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wenbert</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4786</link>
		<dc:creator>wenbert</dc:creator>
		<pubDate>Wed, 14 May 2008 17:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4786</guid>
		<description>@christer: awesome! :) thanks so much!</description>
		<content:encoded><![CDATA[<p>@christer: awesome! :) thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christer</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4784</link>
		<dc:creator>christer</dc:creator>
		<pubDate>Wed, 14 May 2008 12:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4784</guid>
		<description>@wenbert: I have it inside my library folder using the same class/filename scheme as Zend Framework:

library/FKK/Validate/EmailConfirmation.php

If you make sure the library directory is in the include path you should be fit to go!</description>
		<content:encoded><![CDATA[<p>@wenbert: I have it inside my library folder using the same class/filename scheme as Zend Framework:</p>
<p>library/FKK/Validate/EmailConfirmation.php</p>
<p>If you make sure the library directory is in the include path you should be fit to go!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wenbert</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4783</link>
		<dc:creator>wenbert</dc:creator>
		<pubDate>Wed, 14 May 2008 10:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4783</guid>
		<description>Where do I put this file?
# class FKK_Validate_EmailConfirmation extends Zend_Validate_Abstract {</description>
		<content:encoded><![CDATA[<p>Where do I put this file?<br />
# class FKK_Validate_EmailConfirmation extends Zend_Validate_Abstract {</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework How To: Creating your own validator for confirm passwords and emails &#124; eKini: Web Developer Blog</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4782</link>
		<dc:creator>Zend Framework How To: Creating your own validator for confirm passwords and emails &#124; eKini: Web Developer Blog</dc:creator>
		<pubDate>Wed, 14 May 2008 09:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4782</guid>
		<description>[...] I found this. It has more or less a complete coverage with sample source-code and some explanation. My [...]</description>
		<content:encoded><![CDATA[<p>[...] I found this. It has more or less a complete coverage with sample source-code and some explanation. My [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christer</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4730</link>
		<dc:creator>christer</dc:creator>
		<pubDate>Fri, 25 Apr 2008 07:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4730</guid>
		<description>@Jason: Actually I do have a generic match validator myself but split it in two for the sake of the tutorial. I agree with you about it being a  standard validator in ZF. There are plenty of forms who needs something like this.</description>
		<content:encoded><![CDATA[<p>@Jason: Actually I do have a generic match validator myself but split it in two for the sake of the tutorial. I agree with you about it being a  standard validator in ZF. There are plenty of forms who needs something like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Qi</title>
		<link>http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/#comment-4729</link>
		<dc:creator>Jason Qi</dc:creator>
		<pubDate>Thu, 24 Apr 2008 21:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://cogo.wordpress.com/?p=234#comment-4729</guid>
		<description>Great Tutorial! For improvement,I'd like to make one custom validate class instead of two.

Here is just a quick modification:

1) class FKK_Validate_Match extends Zend_Validate_Abstract 

2) line 6 change to 
 const NOT_MATCH = 'NotMatch';  

3) Between line 54 and 55, add

$errorMessage = $fieldName . ' does not match';
                $this-&#62;setMessage($errorMessage, self::NOT_MATCH);

line 7 &#38; 8 become useless.


Thus, you can apply this to both email and password to validate their match.

Further, I guess it should be a standard validator in Zend Framework.</description>
		<content:encoded><![CDATA[<p>Great Tutorial! For improvement,I&#8217;d like to make one custom validate class instead of two.</p>
<p>Here is just a quick modification:</p>
<p>1) class FKK_Validate_Match extends Zend_Validate_Abstract </p>
<p>2) line 6 change to<br />
 const NOT_MATCH = &#8216;NotMatch&#8217;;  </p>
<p>3) Between line 54 and 55, add</p>
<p>$errorMessage = $fieldName . &#8216; does not match&#8217;;<br />
                $this-&gt;setMessage($errorMessage, self::NOT_MATCH);</p>
<p>line 7 &amp; 8 become useless.</p>
<p>Thus, you can apply this to both email and password to validate their match.</p>
<p>Further, I guess it should be a standard validator in Zend Framework.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
