<?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>zahnster &#187; CakePHP</title>
	<atom:link href="http://zahnster.com/category/cakephp/feed" rel="self" type="application/rss+xml" />
	<link>http://zahnster.com</link>
	<description>my name's jade. i'm a child of the internet.</description>
	<lastBuildDate>Tue, 27 Apr 2010 04:04:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Recursive Routes with Cake 1.1</title>
		<link>http://zahnster.com/cakephp/recursive-routes-with-cake-11</link>
		<comments>http://zahnster.com/cakephp/recursive-routes-with-cake-11#comments</comments>
		<pubDate>Fri, 09 Nov 2007 05:48:07 +0000</pubDate>
		<dc:creator>Zahnster</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://zahnster.com/?p=47</guid>
		<description><![CDATA[Maybe because they&#8217;re so undocumented and ambiguous, but there&#8217;s something about Cake URL routes that have both fascinated and frustrated me. In my one+ year history with Cake, I have gone about several methods of planning and executing routing, striving to provide a clean, relevant (&#38; seo friendly) url structure without being counterproductive to the [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe because they&#8217;re so undocumented and ambiguous, but there&#8217;s something about Cake URL routes that have both fascinated and frustrated me. In my one+ year history with Cake, I have gone about several methods of planning and executing routing, striving to provide a clean, relevant (&amp; seo friendly) url structure without being counterproductive to the conventions of Cake.</p>
<p>Recently I had a rather unique challenge come across my plate. It was a potentially complex routing situation where the parameter needed to be between the controller and the view in the url structure. Visually,  &#8216;/controller/parameter/view&#8217;. It made total sense seo wise, and if I could make it work right, wouldn&#8217;t affect Cake conventions at all. However, I wasn&#8217;t even sure if this method was possible.</p>
<p>The solution, as it turns out, was amazingly simple.</p>
<p><span id="more-47"></span></p>
<p>In the Routes declaration, simply set the wildcard (*) in the middle of the model name and the view name. Visually,<br />
<code>$Route-&gt;connect('/controller/*/view', array('controller' =&gt; 'controller', 'action' =&gt; 'view'));</code></p>
<p>There! And now you can recursively route.</p>
]]></content:encoded>
			<wfw:commentRss>http://zahnster.com/cakephp/recursive-routes-with-cake-11/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do you know Cake Debug?</title>
		<link>http://zahnster.com/cakephp/do-you-know-cake-debug</link>
		<comments>http://zahnster.com/cakephp/do-you-know-cake-debug#comments</comments>
		<pubDate>Thu, 02 Aug 2007 21:44:12 +0000</pubDate>
		<dc:creator>Zahnster</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://zahnster.com/?p=30</guid>
		<description><![CDATA[Do you develop in Cake? If so &#8211; have you ever wondered what that mysterious level 3 debug (with the &#8216;full object dump&#8217;) did?
This was something I have been confused over since the time I started developing with the framework &#8211; which is just over a year ago. I would set the level to 3, [...]]]></description>
			<content:encoded><![CDATA[<p>Do you develop in Cake? If so &#8211; have you ever wondered what that mysterious level 3 debug (with the &#8216;full object dump&#8217;) did?</p>
<p>This was something I have been confused over since the time I started developing with the framework &#8211; which is just over a year ago. I would set the level to 3, but never noticed a difference between the output there and the output provided by level 2 debug. I knew I was missing something, but nowhere in the Cake Manual does it elaborate on this setting or what you have to do to make it work.</p>
<p><span id="more-30"></span></p>
<p>Then, by chance a few weeks ago I was in the CakePHP chat room on IRC and someone told me about $cakeDebug. Apparently it&#8217;s included in the default Cake layout template, but due to my constant template creation (always right off the get go in my development process) I had never known that this needed to manually be included in your layout for the Full Object Dump to appear.</p>
<p>The full code reads:<br />
<code>&lt;?= $cakeDebug ?&gt;</code></p>
<p>Feel free to place that in the bottom of your custom template &#8211; when your Debug settings are set to 2 or lower, you won&#8217;t even know it&#8217;s there. However, this is the mysterious object that shows you a full object dump on level 3 debug.</p>
<p>Just figure I&#8217;d share.</p>
]]></content:encoded>
			<wfw:commentRss>http://zahnster.com/cakephp/do-you-know-cake-debug/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Helpers: Friend or foe?</title>
		<link>http://zahnster.com/frameworks/html-helpers-friend-or-foe</link>
		<comments>http://zahnster.com/frameworks/html-helpers-friend-or-foe#comments</comments>
		<pubDate>Fri, 01 Jun 2007 23:23:17 +0000</pubDate>
		<dc:creator>Zahnster</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Frameworks]]></category>

		<guid isPermaLink="false">http://zahnster.com/?p=21</guid>
		<description><![CDATA[Ever since getting on the rapid development framework bandwagon, the one part I&#8217;ve not been totally sold on is the use of helpers, specifically, helpers which replace HTML code.
The reasoning is that I&#8217;ve never really seen the point of them. To give an example, CakePHP has an HTML helper for creating links &#8211; and the [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since getting on the rapid development framework bandwagon, the one part I&#8217;ve not been totally sold on is the use of helpers, specifically, helpers which replace HTML code.</p>
<p>The reasoning is that I&#8217;ve never really seen the point of them. To give an example, CakePHP has an HTML helper for creating links &#8211; and the code looks a little something like this:<br />
<code>&lt;?php echo $html-&gt;link('link text description', '/path/to/link') ?&gt;</code></p>
<p>Which isn&#8217;t really much more efficient than it&#8217;s HTML counterpart, written like this:<br />
<code>&lt;a href="url"&gt;link text description&lt;/a&gt;</code></p>
<p>In fact, the HTML is shorter to write out. So why even bother with HTML helpers?</p>
<p><span id="more-21"></span></p>
<p>I got into the habit of using them, mostly because when I got into the CakePHP framework, it just seemed like the thing to do. It made me feel all Cake-y, and yes, it does come in handy when you are using php variables in the link creation. However, it became abundantly clear to me the other day that it can really cripple regular website maintenance for developers who come into the project not knowing Cake.</p>
<p>One of my clients, who I had created a site for using Cake, needed to change a link in one of the page views, saw the $html-&gt;link() function, didn&#8217;t understand it, and thought that all links had to be created in this special way. Which is totally understandable &#8211; the client doesn&#8217;t know a lot about the Cake framework (or frameworks in general), and wasn&#8217;t aware that all the link function does is parse out an HTML link (and that he could have just used a normal HTML link and it would have been the same).</p>
<p>So, the question remains &#8211; are HTML helpers worth it?</p>
]]></content:encoded>
			<wfw:commentRss>http://zahnster.com/frameworks/html-helpers-friend-or-foe/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Frameworks: Light on the SQL, Please</title>
		<link>http://zahnster.com/frameworks/frameworks-light-on-the-sql-please</link>
		<comments>http://zahnster.com/frameworks/frameworks-light-on-the-sql-please#comments</comments>
		<pubDate>Fri, 20 Apr 2007 07:32:17 +0000</pubDate>
		<dc:creator>Zahnster</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Frameworks]]></category>

		<guid isPermaLink="false">http://zahnster.com/?p=12</guid>
		<description><![CDATA[Cake, the rapid development framework for PHP, makes life 10,000% easier for developers everywhere by providing us with an ActiveRecord pattern for performing the most used database interaction methods: Create, Read, Update, and Delete (CRUD). It&#8217;s modeled closely off of Ruby on Rails&#8217;s ActiveRecord, for those who are more familiar with that framework.
As a Rails [...]]]></description>
			<content:encoded><![CDATA[<p>Cake, the rapid development framework for PHP, makes life 10,000% easier for developers everywhere by providing us with an ActiveRecord pattern for performing the most used database interaction methods: Create, Read, Update, and Delete (CRUD). It&#8217;s modeled closely off of Ruby on Rails&#8217;s ActiveRecord, for those who are more familiar with that framework.</p>
<p>As a Rails developer I&#8217;ve seen the limits of ActiveRecord, and the performance issues it gets when dealing with large, complex database types. But to be honest, I&#8217;ve never been a big fan of the Ruby language, and part of me assumed that was just Ruby being slow. I was convinced that with a good framework, ActiveRecord could be used (efficiently) in complex database environments.</p>
<p>Yesterday that blind faith was taken to the test as I attempted to optimize a CSV generator. The problem was simple: the query which collected a table&#8217;s information, was producing an array which was way too large &#8211; the database table had close to 60,000 records and at 9.something MB, was throwing PHP memory allocation errors left and right.</p>
<p>Right now it stands at Heavyweight SQL: 1 / CakePHP: 0. However, I am determined to find a way to make complex databases work well with Cake &#8211; I still have a lot to learn about this framework, and I have belief in it.</p>
]]></content:encoded>
			<wfw:commentRss>http://zahnster.com/frameworks/frameworks-light-on-the-sql-please/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
