<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: How to Setup Different Error Messages for Each Zend Form Element Validator</title>
	<atom:link href="/2011/11/23/how-to-setup-different-error-messages-for-each-zend-form-element-validator/feed/" rel="self" type="application/rss+xml" />
	<link>/2011/11/23/how-to-setup-different-error-messages-for-each-zend-form-element-validator/</link>
	<description>on web development</description>
	<lastBuildDate>Fri, 26 Oct 2018 21:40:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>By: tery</title>
		<link>/2011/11/23/how-to-setup-different-error-messages-for-each-zend-form-element-validator/comment-page-1/#comment-18494</link>
		<dc:creator><![CDATA[tery]]></dc:creator>
		<pubDate>Fri, 08 Feb 2013 16:11:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=2469#comment-18494</guid>
		<description><![CDATA[ok got it working ..
you have add validator separately like this


$notEmpty = new Zend_Validate_NotEmpty();
        $notEmpty-&#062;setMessage(&#039;Field can not be empty&#039;);
        
        $emailValidate = new Zend_Validate_EmailAddress();
        $emailValidate-&#062;setMessage(&#039;email is not valid&#039;);

  $email = $this-&#062;createElement(&#039;text&#039;, &#039;email&#039;);
        $email-&#062;setLabel(&#039;Username&#039;)
                -&#062;setRequired(TRUE);
          
        $email-&#062;addValidator($notEmpty, TRUE);
        $email-&#062;addValidator($emailValidate, TRUE);]]></description>
		<content:encoded><![CDATA[<p>ok got it working ..<br />
you have add validator separately like this</p>
<p>$notEmpty = new Zend_Validate_NotEmpty();<br />
        $notEmpty-&gt;setMessage(&#8216;Field can not be empty&#8217;);</p>
<p>        $emailValidate = new Zend_Validate_EmailAddress();<br />
        $emailValidate-&gt;setMessage(&#8217;email is not valid&#8217;);</p>
<p>  $email = $this-&gt;createElement(&#8216;text&#8217;, &#8217;email&#8217;);<br />
        $email-&gt;setLabel(&#8216;Username&#8217;)<br />
                -&gt;setRequired(TRUE);</p>
<p>        $email-&gt;addValidator($notEmpty, TRUE);<br />
        $email-&gt;addValidator($emailValidate, TRUE);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tery</title>
		<link>/2011/11/23/how-to-setup-different-error-messages-for-each-zend-form-element-validator/comment-page-1/#comment-18493</link>
		<dc:creator><![CDATA[tery]]></dc:creator>
		<pubDate>Fri, 08 Feb 2013 15:58:21 +0000</pubDate>
		<guid isPermaLink="false">/?p=2469#comment-18493</guid>
		<description><![CDATA[its not working, you can only pass array as argument not object. 
and addValidator() doesnt exist. its addValidators()]]></description>
		<content:encoded><![CDATA[<p>its not working, you can only pass array as argument not object.<br />
and addValidator() doesnt exist. its addValidators()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukoro Godwin</title>
		<link>/2011/11/23/how-to-setup-different-error-messages-for-each-zend-form-element-validator/comment-page-1/#comment-17532</link>
		<dc:creator><![CDATA[Mukoro Godwin]]></dc:creator>
		<pubDate>Mon, 03 Dec 2012 12:45:59 +0000</pubDate>
		<guid isPermaLink="false">/?p=2469#comment-17532</guid>
		<description><![CDATA[I googled every thing and so many complex solution but for this simpler and magical]]></description>
		<content:encoded><![CDATA[<p>I googled every thing and so many complex solution but for this simpler and magical</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>/2011/11/23/how-to-setup-different-error-messages-for-each-zend-form-element-validator/comment-page-1/#comment-16764</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Thu, 11 Oct 2012 15:18:11 +0000</pubDate>
		<guid isPermaLink="false">/?p=2469#comment-16764</guid>
		<description><![CDATA[awesome, nice simple and to the point]]></description>
		<content:encoded><![CDATA[<p>awesome, nice simple and to the point</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stego</title>
		<link>/2011/11/23/how-to-setup-different-error-messages-for-each-zend-form-element-validator/comment-page-1/#comment-15941</link>
		<dc:creator><![CDATA[Stego]]></dc:creator>
		<pubDate>Tue, 05 Jun 2012 15:50:17 +0000</pubDate>
		<guid isPermaLink="false">/?p=2469#comment-15941</guid>
		<description><![CDATA[Thank you ! Exactly what i was looking for.]]></description>
		<content:encoded><![CDATA[<p>Thank you ! Exactly what i was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>/2011/11/23/how-to-setup-different-error-messages-for-each-zend-form-element-validator/comment-page-1/#comment-14937</link>
		<dc:creator><![CDATA[Sebastian]]></dc:creator>
		<pubDate>Thu, 29 Dec 2011 07:55:30 +0000</pubDate>
		<guid isPermaLink="false">/?p=2469#comment-14937</guid>
		<description><![CDATA[Many thanks, this did the trick!]]></description>
		<content:encoded><![CDATA[<p>Many thanks, this did the trick!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
