<?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; PHP</title>
	<atom:link href="http://daniel.streefkerkonline.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.streefkerkonline.com</link>
	<description>Ramblings of a tinkering SysAdmin</description>
	<lastBuildDate>Mon, 19 Jul 2010 00:43:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</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>Open-Audit Released</title>
		<link>http://daniel.streefkerkonline.com/open-audit-released/</link>
		<comments>http://daniel.streefkerkonline.com/open-audit-released/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 23:57:27 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://daniel.streefkerkonline.com/open-audit-released/</guid>
		<description><![CDATA[It looks like Open-Audit has finally been released to the public. I may be a few months slow here, but the website is now up and running. The file release on Sourceforge is a old though, from December 2006. I&#8217;ve &#8230; <a href="http://daniel.streefkerkonline.com/open-audit-released/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://daniel.streefkerkonline.com/uploads/2007/07/windowslivewriteropenauditreleased-8c07open-audit-webpage3.png" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 5px; border-right-width: 0px" height="229" src="http://daniel.streefkerkonline.com/uploads/2007/07/windowslivewriteropenauditreleased-8c07open-audit-webpage-thumb1.png" width="240" align="right" border="0"></a> It looks like Open-Audit has finally been released to the public. I may be a few months slow here, but <a href="http://www.open-audit.org">the website</a> is now up and running. </p>
<p>The file release on Sourceforge is a old though, from December 2006. I&#8217;ve been using the <a href="http://www.open-audit.org/phpbb2/viewtopic.php?t=1430">latest build from Subversion</a> since I started using Open-Audit, and I&#8217;ve never experienced any problems.</p>
<p>&nbsp;To download the latest version from SVN using Linux, do the following:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">

svn co https://svn.sourceforge.net/svnroot/open-audit/trunk open-audit

tar -czvf openaudit.tar.gz open-audit/
</pre>
</div>
</div>
<p>I normally use Filezilla to download the tarball from the linux box to my Windows machine.</p>
<p>Just make sure you make a backup of your &#8216;audit.config&#8217; file (contained in the &#8216;scripts&#8217; subfolder) before you overwrite any files.</p>
]]></content:encoded>
			<wfw:commentRss>http://daniel.streefkerkonline.com/open-audit-released/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>
