<?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: Validating Optional Fields in CakePHP &#8211; The dreaded OR scenario</title>
	<atom:link href="http://edwardawebb.com/programming/php-programming/cakephp/validating-optional-fields-cakephp-dreaded-scenario/feed/" rel="self" type="application/rss+xml" />
	<link>http://edwardawebb.com/web-development/cakephp/validating-optional-fields-cakephp-dreaded-scenario</link>
	<description>get all his digital goodness 24/7</description>
	<lastBuildDate>Thu, 26 Aug 2010 12:13:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: CakePHP: Validate dependent field (select dropdown + input field)&#160;&#124;&#160;Louie Miranda</title>
		<link>http://edwardawebb.com/web-development/cakephp/validating-optional-fields-cakephp-dreaded-scenario/comment-page-1/#comment-1610</link>
		<dc:creator>CakePHP: Validate dependent field (select dropdown + input field)&#160;&#124;&#160;Louie Miranda</dc:creator>
		<pubDate>Thu, 15 Jul 2010 03:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=416#comment-1610</guid>
		<description>[...] found an article on the web that seems to relate on this similar goal here [...]</description>
		<content:encoded><![CDATA[<p>[...] found an article on the web that seems to relate on this similar goal here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: francky06l</title>
		<link>http://edwardawebb.com/web-development/cakephp/validating-optional-fields-cakephp-dreaded-scenario/comment-page-1/#comment-317</link>
		<dc:creator>francky06l</dc:creator>
		<pubDate>Thu, 26 Feb 2009 23:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=416#comment-317</guid>
		<description>I have done a behaviors quite a while ago for this kind of &quot;conditinalvalidation&quot;. It&#039;s on bakery and I am still using it ..maybe a small rewrite and your suggestion can combine the best .., The code is all yours

Cheers</description>
		<content:encoded><![CDATA[<p>I have done a behaviors quite a while ago for this kind of &#8220;conditinalvalidation&#8221;. It&#8217;s on bakery and I am still using it ..maybe a small rewrite and your suggestion can combine the best .., The code is all yours</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://edwardawebb.com/web-development/cakephp/validating-optional-fields-cakephp-dreaded-scenario/comment-page-1/#comment-213</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Thu, 12 Feb 2009 22:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=416#comment-213</guid>
		<description>@mscdex
Thanks for the feedback!
I know there is definite room for improvement here.  I am working on an iteration that will only do the logic once, on the first call in a much cleaner fashion.</description>
		<content:encoded><![CDATA[<p>@mscdex<br />
Thanks for the feedback!<br />
I know there is definite room for improvement here.  I am working on an iteration that will only do the logic once, on the first call in a much cleaner fashion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mscdex</title>
		<link>http://edwardawebb.com/web-development/cakephp/validating-optional-fields-cakephp-dreaded-scenario/comment-page-1/#comment-205</link>
		<dc:creator>mscdex</dc:creator>
		<pubDate>Thu, 12 Feb 2009 01:40:40 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=416#comment-205</guid>
		<description>In validateDependentFields(), you should be able to at least remove the first conditions from the first two if statements.

Since $passed is true by default, $passed does not need to be explicitly set to true for these conditions, and so then you can essentially get rid of those conditions (but keep the &#039;else&#039; clauses as simple &#039;if&#039; statements).

I hope that makes sense.</description>
		<content:encoded><![CDATA[<p>In validateDependentFields(), you should be able to at least remove the first conditions from the first two if statements.</p>
<p>Since $passed is true by default, $passed does not need to be explicitly set to true for these conditions, and so then you can essentially get rid of those conditions (but keep the &#8216;else&#8217; clauses as simple &#8216;if&#8217; statements).</p>
<p>I hope that makes sense.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
