<?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: Validation scenarios</title>
	<atom:link href="http://php-thoughts.cubedwater.com/2009/validation-scenarios/feed/" rel="self" type="application/rss+xml" />
	<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/</link>
	<description>On PHP and things related</description>
	<lastBuildDate>Thu, 29 Jul 2010 07:57:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chris</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-5300</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Thu, 29 Jul 2010 07:57:26 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-5300</guid>
		<description>Thx your article helped me ;)</description>
		<content:encoded><![CDATA[<p>Thx your article helped me ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-528</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Wed, 08 Apr 2009 05:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-528</guid>
		<description>Good to know!
It&#039;s fun to work with yii and read your articles.</description>
		<content:encoded><![CDATA[<p>Good to know!<br />
It&#8217;s fun to work with yii and read your articles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonah</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-299</link>
		<dc:creator>Jonah</dc:creator>
		<pubDate>Thu, 19 Mar 2009 02:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-299</guid>
		<description>As of today, you may in fact use

$user-&gt;setScenario();

It has just been implanted but about 9 hours ago.

The old way has even been &quot;depreciated&quot;</description>
		<content:encoded><![CDATA[<p>As of today, you may in fact use</p>
<p>$user->setScenario();</p>
<p>It has just been implanted but about 9 hours ago.</p>
<p>The old way has even been &#8220;depreciated&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonah</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-260</link>
		<dc:creator>Jonah</dc:creator>
		<pubDate>Thu, 12 Mar 2009 23:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-260</guid>
		<description>I introduced that idea to the developer but at the time he did not like the idea.. I do not totally remember why</description>
		<content:encoded><![CDATA[<p>I introduced that idea to the developer but at the time he did not like the idea.. I do not totally remember why</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon P</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-259</link>
		<dc:creator>Brandon P</dc:creator>
		<pubDate>Thu, 12 Mar 2009 18:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-259</guid>
		<description>Why not have something like this where you can set the current scenario of a model to help with validation AND safeAttributes

$user-&gt;setScenario(&#039;&#039;);
$user-&gt;save();</description>
		<content:encoded><![CDATA[<p>Why not have something like this where you can set the current scenario of a model to help with validation AND safeAttributes</p>
<p>$user-&gt;setScenario(&#8221;);<br />
$user-&gt;save();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hehe</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-174</link>
		<dc:creator>hehe</dc:creator>
		<pubDate>Sat, 28 Feb 2009 00:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-174</guid>
		<description>good to know ;)</description>
		<content:encoded><![CDATA[<p>good to know ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonah</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-173</link>
		<dc:creator>Jonah</dc:creator>
		<pubDate>Sat, 28 Feb 2009 00:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-173</guid>
		<description>michael,

Actually, Yii will automatically assume that the compareAttribute is the same name as the source attribute but with a &#039;_repeat&#039; suffix, if it is not defined explicitly.

http://www.yiiframework.com/doc/api/CCompareValidator</description>
		<content:encoded><![CDATA[<p>michael,</p>
<p>Actually, Yii will automatically assume that the compareAttribute is the same name as the source attribute but with a &#8216;_repeat&#8217; suffix, if it is not defined explicitly.</p>
<p><a href="http://www.yiiframework.com/doc/api/CCompareValidator" rel="nofollow">http://www.yiiframework.com/doc/api/CCompareValidator</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hehe</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-172</link>
		<dc:creator>hehe</dc:creator>
		<pubDate>Sat, 28 Feb 2009 00:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-172</guid>
		<description>imvho you did a mistake:

is:
array(&#039;password&#039;, &#039;compare&#039;, &#039;on&#039; =&gt; &#039;register, update&#039;),

should be:
array(&#039;password&#039;, &#039;compare&#039;, &#039;compareAttribute&#039;=&gt;&#039;password_repeat&#039;, &#039;on&#039;=&gt;&#039;register, update&#039;),

cheers,
michael</description>
		<content:encoded><![CDATA[<p>imvho you did a mistake:</p>
<p>is:<br />
array(&#8216;password&#8217;, &#8216;compare&#8217;, &#8216;on&#8217; =&gt; &#8216;register, update&#8217;),</p>
<p>should be:<br />
array(&#8216;password&#8217;, &#8216;compare&#8217;, &#8216;compareAttribute&#8217;=&gt;&#8217;password_repeat&#8217;, &#8216;on&#8217;=&gt;&#8217;register, update&#8217;),</p>
<p>cheers,<br />
michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Safe attributes tip &#124; Jonah&#8217;s Thoughts</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-142</link>
		<dc:creator>Safe attributes tip &#124; Jonah&#8217;s Thoughts</dc:creator>
		<pubDate>Fri, 20 Feb 2009 00:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-142</guid>
		<description>[...] my last two posts [1, 2] I explained how to define scenario-based validation rules and safe attributes. Something I have [...]</description>
		<content:encoded><![CDATA[<p>[...] my last two posts [1, 2] I explained how to define scenario-based validation rules and safe attributes. Something I have [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qiang</title>
		<link>http://php-thoughts.cubedwater.com/2009/validation-scenarios/comment-page-1/#comment-138</link>
		<dc:creator>Qiang</dc:creator>
		<pubDate>Wed, 18 Feb 2009 18:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=106#comment-138</guid>
		<description>Excellent article! You have well explained scenario-based validation.</description>
		<content:encoded><![CDATA[<p>Excellent article! You have well explained scenario-based validation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
