<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>User Error &#187; CakePHP</title>
	<atom:link href="http://daniel.streefkerkonline.com/category/php/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.streefkerkonline.com</link>
	<description>Ramblings of a tinkering SysAdmin</description>
	<lastBuildDate>Fri, 03 Feb 2012 00:41:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CakePHP Code Snippet: Return only fields with values to the DB upon saving.</title>
		<link>http://daniel.streefkerkonline.com/cakephp-code-snippet-return-only-fields-with-values-to-the-db-upon-saving/</link>
		<comments>http://daniel.streefkerkonline.com/cakephp-code-snippet-return-only-fields-with-values-to-the-db-upon-saving/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 06:34:11 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://daniel.streefkerkonline.com/?p=106</guid>
		<description><![CDATA[This code goes in {ModelName}::beforeSave: foreach ($this->data[$this->name] as $key => $value) { if (!set::classicExtract($this->data,$this->name . '.' . $key)) { $this->data = set::remove($this->data,$this->name . '.' . $key); } } I use it where the DB may be expecting values for certain &#8230; <a href="http://daniel.streefkerkonline.com/cakephp-code-snippet-return-only-fields-with-values-to-the-db-upon-saving/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This code goes in {ModelName}::beforeSave:</p>
<pre>
foreach ($this->data[$this->name] as $key => $value) {
    if (!set::classicExtract($this->data,$this->name . '.' . $key)) {
        $this->data = set::remove($this->data,$this->name . '.' . $key);
    }
}
</pre>
<p>I use it where the DB may be expecting values for certain fields that are optional in the UI, and therefore may be returned empty by the controller.</p>
]]></content:encoded>
			<wfw:commentRss>http://daniel.streefkerkonline.com/cakephp-code-snippet-return-only-fields-with-values-to-the-db-upon-saving/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP</title>
		<link>http://daniel.streefkerkonline.com/cakephp/</link>
		<comments>http://daniel.streefkerkonline.com/cakephp/#comments</comments>
		<pubDate>Thu, 01 Mar 2007 00:44:56 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://streefkerkonline.com/daniel/2007/03/01/cakephp/</guid>
		<description><![CDATA[If, like me, you&#8217;re not a real PHP aficionado, you can use CakePHP to fast-track application development. Using CakePHP still requires a modicum of PHP know-how, but this can help you learn about MVC and OO PHP. I had a &#8230; <a href="http://daniel.streefkerkonline.com/cakephp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://streefkerkonline.com/daniel/uploads/2007/03/windowslivewritercakephp-a51fcakephp-logo5.jpg" atomicselection="true"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="82" alt="CakePHP logo" src="http://streefkerkonline.com/daniel/uploads/2007/03/windowslivewritercakephp-a51fcakephp-logo-thumb3.jpg" width="82" align="left" border="0"></a> If, like me, you&#8217;re not a real PHP aficionado, you can use <a href="http://www.cakephp.org" target="_blank">CakePHP</a> to fast-track application development. Using CakePHP still requires a modicum of PHP know-how, but this can help you learn about <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC</a> and <a href="http://en.wikipedia.org/wiki/Object-oriented_programming">OO</a> PHP.</p>
<p>I had a look at a few different PHP MVC frameworks, and while I thought that Symfony looked the best, I ended up going with CakePHP due to hosting restrictions. CakePHP fits the bill for me due to not being able (or inclined) to change the virtual directory or install any type of URL rewriting modules.</p>
<p>I found that the best tutorial so far is the IBM DeveloperWorks series <a href="http://www-128.ibm.com/developerworks/views/opensource/libraryview.jsp?search_by=cook+web+sites+CakePHP" target="_blank">&#8216;Cook up Web sites fast with CakePHP&#8217;</a>.</p>
<p>Some of the resources i&#8217;ve used so far:</p>
<ul>
<li><a href="http://groups-beta.google.com/group/cake-php">CakePHP Google Group</a></li>
<li><a href="http://cakebaker.42dh.com/">cakebaker</a></li>
<li><a href="http://cakephp.seesaa.net/">cakephp.seesaa.net</a> (The most active CakePHP blog, but it&#8217;s in Japanese)</li>
</ul>
<p>I&#8217;ll post more tidbits of useful info about CakePHP and what i&#8217;ve learned here as I go.</p>
]]></content:encoded>
			<wfw:commentRss>http://daniel.streefkerkonline.com/cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

