<?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>ben koonse &#187; MVC</title>
	<atom:link href="http://bennyfreshness.com/tag/mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://bennyfreshness.com</link>
	<description>wrestling code into submission...</description>
	<lastBuildDate>Tue, 11 Oct 2011 19:38:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Wanna Kohana?</title>
		<link>http://bennyfreshness.com/2009/10/wanna-kohana/</link>
		<comments>http://bennyfreshness.com/2009/10/wanna-kohana/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 07:26:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[Kohana]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://bennyfreshness.com/?p=68</guid>
		<description><![CDATA[Wanna Kohana? Because I sure do.. This secure, lightweight, and extensible little number can work wonders for your web developing ensemble.  ]]></description>
			<content:encoded><![CDATA[<p>Wanna <a href="http://www.kohanaphp.com/">Kohana</a>? Because I sure do.. This secure, lightweight, and extensible little number can work wonders for your web developing ensemble.</p>
<p>OK, I know what you&#8217;re all thinking, &#8220;What about CakePHP?&#8221;  Cake is undeniably an Olympic gold medalist framework featuring many similarities to Ruby on Rails.  Ahhh Rails, I promise someday I&#8217;ll devote more time to you, but until then my programming world resides primarily in PHP.  Sometimes you have to make the best of the hand thats dealt&#8230; </p>
<p>Which brings us to the lovely, elegant, graceful and genteel Kohana framework.</p>
<p><span id="more-68"></span></p>
<p>Enough fluff, I&#8217;m about to punch you in the face with some factualizations.  Here&#8217;s reasons why Kohana has street cred:</p>
<blockquote>
<ol>
<li>The strictest OOP PHP has to offer</li>
<li>Dainty footprint, no extra libraries like PEAR</li>
<li>Locks down GET, POST, COOKIE, and SESSION with XSS protection</li>
<li>Auto-loads classes like butter</li>
<li>Orginization</li>
<li>Flexible and extensible</li>
<li>Godlike power over events</li>
<li>Rapid Application Development</li>
</ol>
</blockquote>
<p>Don&#8217;t believe me, <a href="http://www.kohanaphp.com/download">download</a> the framework and see for yourself!</p>
<p>First of all not having to support PHP4 means less code and enables more robust functionality for the framework.  <a href="http://php.net/manual/en/language.oop5.autoload.php">Auto-loading</a>, for those of you who haven&#8217;t yet experienced its awesomeness, steadfastly promotes great justice.  Gone are those agonizing days of having to use require_once() and the likes.</p>
<p>MVC, well we all know the virtues of MVC. Also, the RAD aspect is pretty rad as well.</p>
<p>Event handling enables you to poke your head in at almost any time during execution just to say hello or stay and enjoy a spot of tea, cherio.</p>
<p>Time for some snippets!</p>
<p>Here is a basic controller:</p>
<p><code> </code></p>
<p><code></p>
<pre>class Freshness_Controller extends Controller {
  function freshen()
  {
	// Load the view as an object
	$view = new View('freshest');
	// Adding variables to be displayed in the view
	$view-&gt;title      = "Welcome to Bennyfreshness's blog.";
	$view-&gt;heading = "Wow this is indeed extremely fresh.";
	$view-&gt;content = "I've never seen so much freshness.";
	// Render the view
	$view-&gt;render(TRUE);
  }
}</pre>
<p></code></p>
<p>You get the point&#8230; Clean, concise code&#8230;</p>
<p>To bring this party to an end I&#8217;d like to end with some closing remarks.  If you&#8217;re doing web application development in PHP I strongly recommend checking out Kohana.  Its short learning curve, vibrant community, friendly IRC (#kohana on irc.freenode.net), and most importantly rich and robust code base will increase your productivity and you&#8217;ll have more fun while programming.</p>
<p>So how do you get me to go back to developing in Cake?</p>
<p>Take the letter &#8220;c&#8221; out of &#8220;cloth&#8221; and the letter &#8220;f&#8221; out of &#8220;way&#8221;</p>
<p> <img src='http://bennyfreshness.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bennyfreshness.com/2009/10/wanna-kohana/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

