<?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>Bobbie van den Heuvel &#187; Eddy</title>
	<atom:link href="http://bobbievdheuvel.net/category/eddy/feed/" rel="self" type="application/rss+xml" />
	<link>http://bobbievdheuvel.net</link>
	<description>Bonk!</description>
	<lastBuildDate>Thu, 17 May 2012 11:26:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Change of plans</title>
		<link>http://bobbievdheuvel.net/2011/11/change-of-plans/</link>
		<comments>http://bobbievdheuvel.net/2011/11/change-of-plans/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 20:49:05 +0000</pubDate>
		<dc:creator>Bobbie</dc:creator>
				<category><![CDATA[Eddy]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://bobbievdheuvel.net/?p=155</guid>
		<description><![CDATA[Eddy has been put on hold, because learning to use an established, well-known framework seems to be a more desirable skill to learn for me at the moment. For that reason I&#8217;ve started experimenting with CodeIgniter instead! Perhaps Eddy will be continued later?]]></description>
			<content:encoded><![CDATA[<p>Eddy has been put on hold, because learning to use an established, well-known framework seems to be a more desirable skill to learn for me at the moment. For that reason I&#8217;ve started experimenting with <a href="http://codeigniter.com/">CodeIgniter</a> instead! Perhaps Eddy will be continued later?</p>
]]></content:encoded>
			<wfw:commentRss>http://bobbievdheuvel.net/2011/11/change-of-plans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eddy #2 &#8211; Eddy is a model!</title>
		<link>http://bobbievdheuvel.net/2011/08/eddy-is-a-model/</link>
		<comments>http://bobbievdheuvel.net/2011/08/eddy-is-a-model/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 14:40:48 +0000</pubDate>
		<dc:creator>Bobbie</dc:creator>
				<category><![CDATA[Eddy]]></category>

		<guid isPermaLink="false">http://bobbievdheuvel.net/?p=117</guid>
		<description><![CDATA[Seeing as I&#8217;m documenting the entire road towards building my PHP Framework &#8220;Eddy&#8221;, that also includes the designing process. I don&#8217;t often make elaborate models and designs for my own home-brew software, this is definitely an exception. I want Eddy to be easily modifiable and extendable, not some hacked-together piece of poop. Now I&#8217;ve been thought that a way to ...]]></description>
			<content:encoded><![CDATA[<p>Seeing as I&#8217;m documenting the entire road towards building my PHP Framework &#8220;Eddy&#8221;, that also includes the designing process. I don&#8217;t often make elaborate models and designs for my own home-brew software, this is definitely an exception. I want Eddy to be easily modifiable and extendable, not some hacked-together piece of poop. Now I&#8217;ve been thought that a way to achieve this is to think before you do. This post is entirely about the design process I&#8217;m currently going through to build Eddy.</p>
<h6 class="fancy_header3"><span>Weapon of Choice</span></h6>
<p>I&#8217;ll be using UML for the models. Why? Simply because I have experience with it and because I&#8217;m comfortable with it. An excellent tool for making UML models is <a href="http://live.gnome.org/Dia/Download" title="Dia" target="_blank">Dia</a>. It&#8217;s free, and it does what I need it to do. I&#8217;ve used it for projects before, both at school and at work. Again, I&#8217;m comfortable with this program and I&#8217;ve grown to love it.</p>
<h6 class="fancy_header3"><span>Vision</span></h6>
<p>At the base of the framework I want to have an object that functions as some sort of registry. The task of this object is to keep the framework together, connecting all the parts. For now, I&#8217;ll be calling this object by it&#8217;s name, &#8220;Eddy&#8221;. At this point, I am not getting into the attributes and functions of the objects quite yet. The Eddy object should be a singleton, there can only be one of them at a time. I don&#8217;t want a bunch of Eddies running around&#8230;</p>
<p><center></p>
<div class="fancy_images"><div class="fancy_image"><a rel="prettyPhoto[fancy_img_group_976]" href="http://bobbievdheuvel.net/wp-content/uploads/Eddy.jpeg" title="Eddy" class="fancy_image_load" style="background:no-repeat center center;display:block;position:relative;height:378px;width:560px;"><span class="noscript"><img class="hover_fade_js" src="http://bobbievdheuvel.net/wp-content/uploads/Eddy.jpeg" title="Eddy" alt="" width="550" height="368" /></span><div class="mysite_preloader"><img src="http://bobbievdheuvel.net/wp-content/themes/infocus/images/assets/transparent.gif" style="background-image: url(http://bobbievdheuvel.net/wp-content/themes/infocus/images/assets/preloader.png);background-position:left center;"></div></a></div></div><p></center></p>
<hr style="clear:both;"/>
<p>Eddy is supported by plugins. These plugins are tracked by Eddy and are callable through Eddy. There are abstract classes for Plugin, Model and Controller, which have to be extended to provide further functionality&#8230; This is all I have for now. This is the model I had in my head, and hopefully it will gradually become clearer as I go.</p>
]]></content:encoded>
			<wfw:commentRss>http://bobbievdheuvel.net/2011/08/eddy-is-a-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eddy #1 &#8211; Meet Eddy!</title>
		<link>http://bobbievdheuvel.net/2011/08/eddy-introduction/</link>
		<comments>http://bobbievdheuvel.net/2011/08/eddy-introduction/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 06:00:03 +0000</pubDate>
		<dc:creator>Bobbie</dc:creator>
				<category><![CDATA[Eddy]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.bobbievdheuvel.net/?p=57</guid>
		<description><![CDATA[The Eddy Framework is a little project I&#8217;ve decided to start up to advance my skills in PHP. My aim with the Eddy Framework is not to make a fully functioning framework; I&#8217;m fully aware that there are many (much more elaborate) frameworks already out there. Nope, Eddy is purely an educational project. I will be documenting my choices and ...]]></description>
			<content:encoded><![CDATA[<p>The Eddy Framework is a little project I&#8217;ve decided to start up to advance my skills in PHP. My aim with the Eddy Framework is not to make a fully functioning framework; I&#8217;m fully aware that there are many (much more elaborate) frameworks already out there. Nope, Eddy is purely an educational project. I will be documenting my choices and actions regarding the framework as I go. With this, I hope to help out others who might be wanting to try the same, and possibly get feedback on what I&#8217;m doing right or wrong. My main requirements for the framework will be to make it Object Oriented, using the MVC design pattern and making it easily extendable.</p>
<p><span id="more-57"></span></p>
<h2>Ready, set, go!</h2>
<p>So let&#8217;s get started. To begin with, I&#8217;ve decided to go for the following file/folder structure:</p>
<div id="attachment_89" class="wp-caption aligncenter" style="width: 264px"><a href="http://bobbievdheuvel.net/wp-content/uploads/structure.jpg"><img src="http://bobbievdheuvel.net/wp-content/uploads/structure.jpg" alt="Folder structure" title="Folder structure" width="254" height="171" class="size-full wp-image-89" /></a>
<p class="wp-caption-text">Folder structure</p>
</div>
<p>I&#8217;ve worked with the MVC pattern before, and I know these are the most basic elements I&#8217;ll be needing. I will very likely be adding more folders as I go, but for now this will do. My first goal with the framework is to implement the front controller pattern. Basically, I want all URL requests to go through the <em>index.php</em> file. To achieve this, I&#8217;ve added a few basic rules to the <em>.htaccess</em> file. It will first check to see if the requested URL really exists as a file. This is because I still want the browser to be able to download files such as images or style sheets. Without these rules, even requests such as &#8220;background.jpg&#8221;and &#8220;style.css&#8221; would be internally redirected to the index.php file, causing these images and style sheets to be broken. The <em>.htaccess</em> file now consists of the following:</p>
<p>[code]<br />
RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteRule ^.*$ index.php [L]<br />
[/code]</p>
<p>The &#8220;L&#8221; flag given to the rewrite rule makes this the last rule to be applied, and thus prevents any further rewriting of the URL after this line.</p>
<p>Now, no matter what URL is entered, all requests will be internally routed to the <em>index.php</em> file. My next goal will be to make the <em>index.php</em> file actually do something with the requests, as for now it will simply return a blank page. And of course we all know that the usefulness of <a href="about:blank" target="_blank">blank pages</a> on the internet are quite limited. <img src='http://bobbievdheuvel.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div style="text-align:center"><a href="http://labs.bobbievdheuvel.net/eddy/" class="button_link hover_fade medium_button aligncenter"><span>Say hello to Eddy!</span></a></div>
]]></content:encoded>
			<wfw:commentRss>http://bobbievdheuvel.net/2011/08/eddy-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

