<?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: Form validation callbacks and private functions</title>
	<atom:link href="http://scottblaine.com/form-validation-callbacks-and-private-functions/feed" rel="self" type="application/rss+xml" />
	<link>http://scottblaine.com/form-validation-callbacks-and-private-functions</link>
	<description>A man on a mission</description>
	<lastBuildDate>Sun, 18 Apr 2010 16:06:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Scott</title>
		<link>http://scottblaine.com/form-validation-callbacks-and-private-functions/comment-page-1#comment-74</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 18 Aug 2009 04:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://scottblaine.com/?p=149#comment-74</guid>
		<description>I didn&#039;t originally dive much into the intricacies of setting up private functions. I&#039;ve since updated my example to note that you need to specify the message for the field if it fails. Thanks for the feedback!</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t originally dive much into the intricacies of setting up private functions. I&#8217;ve since updated my example to note that you need to specify the message for the field if it fails. Thanks for the feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ph1047</title>
		<link>http://scottblaine.com/form-validation-callbacks-and-private-functions/comment-page-1#comment-73</link>
		<dc:creator>ph1047</dc:creator>
		<pubDate>Mon, 17 Aug 2009 21:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://scottblaine.com/?p=149#comment-73</guid>
		<description>Ah damn. I forgot to change this.....
$this-&gt;form_validation-&gt;set_message(&#039;_usr_exists&#039;, &#039;gtfo&#039;);
It works OK...</description>
		<content:encoded><![CDATA[<p>Ah damn. I forgot to change this&#8230;..<br />
$this-&gt;form_validation-&gt;set_message(&#8216;_usr_exists&#8217;, &#8216;gtfo&#8217;);<br />
It works OK&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ph1047</title>
		<link>http://scottblaine.com/form-validation-callbacks-and-private-functions/comment-page-1#comment-72</link>
		<dc:creator>ph1047</dc:creator>
		<pubDate>Mon, 17 Aug 2009 21:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://scottblaine.com/?p=149#comment-72</guid>
		<description>it is NOT working. Tested on 1.7.1.

$this-&gt;form_validation-&gt;set_rules(&#039;login&#039;, &#039;Login&#039;, &#039;trim&#124;required&#124;min_length[4]&#124;max_length[24]&#124;callback__usr_exists&#039;);
...
function _usr_exists($str)
...

i get
&quot;Unable to access an error message corresponding to your field name.&quot;</description>
		<content:encoded><![CDATA[<p>it is NOT working. Tested on 1.7.1.</p>
<p>$this-&gt;form_validation-&gt;set_rules(&#8216;login&#8217;, &#8216;Login&#8217;, &#8216;trim|required|min_length[4]|max_length[24]|callback__usr_exists&#8217;);<br />
&#8230;<br />
function _usr_exists($str)<br />
&#8230;</p>
<p>i get<br />
&#8220;Unable to access an error message corresponding to your field name.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://scottblaine.com/form-validation-callbacks-and-private-functions/comment-page-1#comment-61</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Thu, 30 Jul 2009 21:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://scottblaine.com/?p=149#comment-61</guid>
		<description>You bet! Glad you found it useful.</description>
		<content:encoded><![CDATA[<p>You bet! Glad you found it useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Jones</title>
		<link>http://scottblaine.com/form-validation-callbacks-and-private-functions/comment-page-1#comment-60</link>
		<dc:creator>Eric Jones</dc:creator>
		<pubDate>Thu, 30 Jul 2009 21:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://scottblaine.com/?p=149#comment-60</guid>
		<description>From a newbie to Codeigniter, thanks for the hint.  I read the user guide, but never put those two together.</description>
		<content:encoded><![CDATA[<p>From a newbie to Codeigniter, thanks for the hint.  I read the user guide, but never put those two together.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
