<?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: Parameter for Model::validates() is now deprecated</title>
	<atom:link href="http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 16 Mar 2010 15:25:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Using validates() in cakePHP 1.2</title>
		<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/comment-page-1/#comment-113993</link>
		<dc:creator>Using validates() in cakePHP 1.2</dc:creator>
		<pubDate>Thu, 04 Dec 2008 20:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/#comment-113993</guid>
		<description>[...] The only problem was&#8230; it didn&#8217;t work! It took me some time until I figured out that the Parameter usage of validated() is deprecated: Thanks to cakebaker for his blog entry! [...]</description>
		<content:encoded><![CDATA[<p>[...] The only problem was&#8230; it didn&#8217;t work! It took me some time until I figured out that the Parameter usage of validated() is deprecated: Thanks to cakebaker for his blog entry! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Model::validates() trap - cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/comment-page-1/#comment-111998</link>
		<dc:creator>The Model::validates() trap - cakebaker</dc:creator>
		<pubDate>Wed, 05 Nov 2008 09:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/#comment-111998</guid>
		<description>[...] on the validation rules). For a while the parameter of Model::validates() was deprecated (see Parameter for Model::validates() is now deprecated) and caused a warning if you used it. In the meantime the parameter is back with a new [...]</description>
		<content:encoded><![CDATA[<p>[...] on the validation rules). For a while the parameter of Model::validates() was deprecated (see Parameter for Model::validates() is now deprecated) and caused a warning if you used it. In the meantime the parameter is back with a new [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/comment-page-1/#comment-46158</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 20 Dec 2007 15:49:07 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/#comment-46158</guid>
		<description>@Tim: I don&#039;t know what the use case is for those methods. I don&#039;t use them. validateErrors() may be useful if you want to validate multiple models.</description>
		<content:encoded><![CDATA[<p>@Tim: I don&#8217;t know what the use case is for those methods. I don&#8217;t use them. validateErrors() may be useful if you want to validate multiple models.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Daldini</title>
		<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/comment-page-1/#comment-45793</link>
		<dc:creator>Tim Daldini</dc:creator>
		<pubDate>Wed, 19 Dec 2007 18:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/#comment-45793</guid>
		<description>I also noticed these methods: controller-&gt;validateErrors  and controller-&gt;validate. As I never needed them I was wondering if they can be useful in some circumstances anyway...?</description>
		<content:encoded><![CDATA[<p>I also noticed these methods: controller-&gt;validateErrors  and controller-&gt;validate. As I never needed them I was wondering if they can be useful in some circumstances anyway&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/comment-page-1/#comment-2795</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Wed, 10 Jan 2007 03:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/#comment-2795</guid>
		<description>off topic:

IBM&#039;s Cake Series Part 4 is up:
http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake4.html</description>
		<content:encoded><![CDATA[<p>off topic:</p>
<p>IBM&#8217;s Cake Series Part 4 is up:<br />
<a href="http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake4.html" rel="nofollow">http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake4.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/comment-page-1/#comment-2678</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Sun, 07 Jan 2007 12:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/#comment-2678</guid>
		<description>@nate: Thanks for the tip, your solution is more elegant.</description>
		<content:encoded><![CDATA[<p>@nate: Thanks for the tip, your solution is more elegant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nate</title>
		<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/comment-page-1/#comment-2658</link>
		<dc:creator>nate</dc:creator>
		<pubDate>Sat, 06 Jan 2007 15:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/#comment-2658</guid>
		<description>The change was made because it conflicts with handling validation in the callbacks.  If you want to validate data without saving it, the easiest way to go about it is this:

&lt;code&gt;
if ($this-&gt;User-&gt;create($this-&gt;data) &amp;&amp; $this-&gt;User-&gt;validates()) {
    // Oh happy day
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>The change was made because it conflicts with handling validation in the callbacks.  If you want to validate data without saving it, the easiest way to go about it is this:</p>
<pre><code>if ($this-&amp;gt;User-&amp;gt;create($this-&amp;gt;data) &amp;amp;&amp;amp; $this-&amp;gt;User-&amp;gt;validates()) {
    // Oh happy day
}</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: KesheR</title>
		<link>http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/comment-page-1/#comment-2653</link>
		<dc:creator>KesheR</dc:creator>
		<pubDate>Sat, 06 Jan 2007 11:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/#comment-2653</guid>
		<description>The world is changing: I feel it in the water, I feel it in the earth, and I smell it in the air.</description>
		<content:encoded><![CDATA[<p>The world is changing: I feel it in the water, I feel it in the earth, and I smell it in the air.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
