<?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>acloudtree &#187; cakephp</title>
	<atom:link href="http://www.acloudtree.com/tag/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.acloudtree.com</link>
	<description>Programming, Computers, Writing, Economics, and Life</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:03:38 +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>Beginning Cakephp &#8211; Errata : Pg 106</title>
		<link>http://www.acloudtree.com/beginning-cakephp-errata-pg-106/</link>
		<comments>http://www.acloudtree.com/beginning-cakephp-errata-pg-106/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 00:17:56 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[106]]></category>
		<category><![CDATA[beginning cakephp]]></category>
		<category><![CDATA[errata]]></category>
		<category><![CDATA[findByYear]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=44</guid>
		<description><![CDATA[The findByYear() function is messed up in the book. Thought I would post the correction to remind myself. Correct! function findByYear($year=null) { $date = $year.'-01-01 00:00:00'; $end_date = $year.'-12-31 23:59:59'; return $this-&#62;find('all', array( 'conditions' =&#62; array( 'DATE(Post.date) &#62;' =&#62; $date, 'DATE(Post.date) &#60;' =&#62; $end_date ) ) ); } Incorrect! function findByYear($year=null) { $date = $year.'-01-01 [...]]]></description>
			<content:encoded><![CDATA[<p>The findByYear() function is messed up in the book. Thought I would post the correction to remind myself.</p>
<p>Correct!<br />
<code></p>
<pre>
function findByYear($year=null) {
	$date = $year.'-01-01 00:00:00';
	$end_date = $year.'-12-31 23:59:59';
	return $this-&gt;find('all',
		array(
			'conditions' =&gt;
			array(
				'DATE(Post.date) &gt;' =&gt; $date,
				'DATE(Post.date) &lt;' =&gt; $end_date
			)
		 )
	);
}
</pre>
<p></code><br />
Incorrect!<br />
<code></p>
<pre>
function findByYear($year=null) {
	$date = $year.'-01-01 00:00:00';
	$end_date = $year.'-12-31 23:59:59';
	return $this-&gt;find('all',
		array(
			'conditions' =&gt;
			array(
				'DATE(Post.date)' =&gt; '&gt;'.$date,
				'DATE(Post.date)' =&gt; '&lt;'.$end_date
			)
		)
	);
}
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/beginning-cakephp-errata-pg-106/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu + VIM + CakePHP 1.2 + .ctp syntax highlighting</title>
		<link>http://www.acloudtree.com/ubuntu-vim-cakephp-12-ctp-syntax-highlighting/</link>
		<comments>http://www.acloudtree.com/ubuntu-vim-cakephp-12-ctp-syntax-highlighting/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 05:19:11 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VIM]]></category>
		<category><![CDATA[.vimrc]]></category>
		<category><![CDATA[syntax highlighting]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=43</guid>
		<description><![CDATA[Found this blog post concerning setting up the Cakephp view extension (.ctp) to use the same highlighting as (.php). blog I didn&#8217;t find his solution that helpful, but one of the comments said to add this to my &#8216;.vimrc&#8217; file in my home directory. if has(”autocmd”) autocmd BufEnter *.ctp set syn=php endif And since we [...]]]></description>
			<content:encoded><![CDATA[<p>Found this blog post concerning setting up the Cakephp view extension (.ctp) to use the same highlighting as (.php).</p>
<p><a href="http://quakey.wordpress.com/2007/07/11/vim-syntax-highlighting/">blog</a></p>
<p>I didn&#8217;t find his solution that helpful, but one of the comments said to add this to my &#8216;.vimrc&#8217; file in my home directory.</p>
<p><code><br />
if has(”autocmd”)<br />
autocmd BufEnter *.ctp set syn=php<br />
endif<br />
</code></p>
<p>And since we are on the topic here is how my .vimrc is setup</p>
<p><code></p>
<pre>
set tabstop=2
set shiftwidth=2
set expandtab

if has("autocmd")
autocmd BufEnter *.ctp set syn=php
endif

syn on</pre>
<p></code></p>
<p>-later</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/ubuntu-vim-cakephp-12-ctp-syntax-highlighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cakephp</title>
		<link>http://www.acloudtree.com/cakephp/</link>
		<comments>http://www.acloudtree.com/cakephp/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 05:02:00 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[OOP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[bi-tech]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[position control]]></category>
		<category><![CDATA[school district]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=40</guid>
		<description><![CDATA[So, in my free time I am trying to write a web app for some folks at the District. I selected Cakephp as the framework for two reasons.  I know PHP It was suggested to me Ok, here is a third. It is freakin easy. I needed something to develop in rapidly and am making [...]]]></description>
			<content:encoded><![CDATA[<p>So, in my free time I am trying to write a web app for some folks at the District. I selected Cakephp as the framework for two reasons.</p>
<ol>
<li> I know PHP</li>
<li>It was suggested to me</li>
<li>Ok, here is a third. It is freakin easy.</li>
</ol>
<p>I needed something to develop in rapidly and am making progress with cake by leaps and bounds. The only thing that has really slowed me down is rolling my own RBAC. If there was a library to do this type of security, it would make life a lot easier.</p>
<p>The application itself is a Position Control System. With budget cuts at a state level, monitoring FTE with greater clarity and control is becoming very important. The complexities go beyond a normal system because of the way FTE can be transferred in a School District. I haven&#8217;t worked yet on how to calc these complexities, I only have identified them. But. I figure my solution will probably be interesting to some.</p>
<p>Once I have some code built, I will share.</p>
<p>-later</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

