<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Writing a CMS/Community with Smarty and the Zend Framework: Part 10</title>
	<link>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/</link>
	<description>Dev related notes, tutorials and anecdotes</description>
	<pubDate>Fri, 29 Aug 2008 08:53:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Henrik</title>
		<link>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-1545</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Wed, 12 Mar 2008 03:57:04 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-1545</guid>
		<description>I&#39;m working with ZF now to replace the crap code, I just discovered a refactoring related bug. I think the unique case in the validateField function in ExtController should look like this instead of they way it looks like in the downloadable source (haven&#39;t tested yet though):&lt;br&gt;&lt;br&gt;&#60;pre&#62;&lt;code class="php"&gt;&lt;br&gt;case &#39;unique&#39;:&lt;br&gt;  if($type == "login" &#124;&#124; $type == "update")&lt;br&gt;    return true;&lt;br&gt;  $target_row = $this-&#62;obj-&#62;fetchRow("$field = &#39;$value&#39;");&lt;br&gt;  if($target_row != false)&lt;br&gt;    return array($field =&#62; $val_errors[$field]);&lt;br&gt;  break;&lt;br&gt;&lt;/code&gt;&#60;/pre&#62;</description>
		<content:encoded><![CDATA[<p>I&#39;m working with ZF now to replace the crap code, I just discovered a refactoring related bug. I think the unique case in the validateField function in ExtController should look like this instead of they way it looks like in the downloadable source (haven&#39;t tested yet though):</p>
<p>&lt;pre&gt;<code class="php">&lt;br&gt;case &amp;#39;unique&amp;#39;:&lt;br&gt;  if($type == "login" || $type == "update")&lt;br&gt;    return true;&lt;br&gt;  $target_row = $this-&amp;gt;obj-&amp;gt;fetchRow("$field = &amp;#39;$value&amp;#39;");&lt;br&gt;  if($target_row != false)&lt;br&gt;    return array($field =&amp;gt; $val_errors[$field]);&lt;br&gt;  break;&lt;br&gt;</code>&lt;/pre&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-734</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Wed, 12 Mar 2008 02:57:04 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-734</guid>
		<description>I'm working with ZF now to replace the crap code, I just discovered a refactoring related bug. I think the unique case in the validateField function in ExtController should look like this instead of they way it looks like in the downloadable source (haven't tested yet though):

&lt;pre&gt;&lt;code class="php"&gt;
case 'unique':
  if($type == "login" &#124;&#124; $type == "update")
    return true;
  $target_row = $this-&gt;obj-&gt;fetchRow("$field = '$value'");
  if($target_row != false)
    return array($field =&gt; $val_errors[$field]);
  break;
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m working with ZF now to replace the crap code, I just discovered a refactoring related bug. I think the unique case in the validateField function in ExtController should look like this instead of they way it looks like in the downloadable source (haven&#8217;t tested yet though):</p>
<pre><pre><code class="php">case 'unique':
  if($type == "login" || $type == "update")
    return true;
  $target_row = $this-&gt;obj-&gt;fetchRow("$field = '$value'");
  if($target_row != false)
    return array($field =&gt; $val_errors[$field]);
  break;</code></pre></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-679</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Wed, 27 Feb 2008 09:57:38 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-679</guid>
		<description>Yeah, I had to take all the proprietary graphics out of there, that's why I procrastinated with the upload. I redid it with Gimp, my first stuff ever with Gimp, hope it's not too ugly :)</description>
		<content:encoded><![CDATA[<p>Yeah, I had to take all the proprietary graphics out of there, that&#8217;s why I procrastinated with the upload. I redid it with Gimp, my first stuff ever with Gimp, hope it&#8217;s not too ugly <img src='http://www.prodevtips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-1544</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Wed, 27 Feb 2008 09:57:38 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-1544</guid>
		<description>Yeah, I had to take all the proprietary graphics out of there, that&#39;s why I procrastinated with the upload. I redid it with Gimp, my first stuff ever with Gimp, hope it&#39;s not too ugly :)</description>
		<content:encoded><![CDATA[<p>Yeah, I had to take all the proprietary graphics out of there, that&#39;s why I procrastinated with the upload. I redid it with Gimp, my first stuff ever with Gimp, hope it&#39;s not too ugly <img src='http://www.prodevtips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Andrew</title>
		<link>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-678</link>
		<dc:creator>Philip Andrew</dc:creator>
		<pubDate>Wed, 27 Feb 2008 07:39:59 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-678</guid>
		<description>Great! Source code! Enjoy your PHP hacking</description>
		<content:encoded><![CDATA[<p>Great! Source code! Enjoy your PHP hacking</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Andrew</title>
		<link>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-1095</link>
		<dc:creator>Philip Andrew</dc:creator>
		<pubDate>Wed, 27 Feb 2008 07:39:59 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/27/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-10/#comment-1095</guid>
		<description>Great! Source code! Enjoy your PHP hacking</description>
		<content:encoded><![CDATA[<p>Great! Source code! Enjoy your PHP hacking</p>
]]></content:encoded>
	</item>
</channel>
</rss>
