<?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>Bin-Blog &#187; features</title>
	<atom:link href="http://www.bin-co.com/blog/tag/features/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 13 Oct 2009 18:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>iFrame Features</title>
		<link>http://www.bin-co.com/blog/2007/05/iframe-features/</link>
		<comments>http://www.bin-co.com/blog/2007/05/iframe-features/#comments</comments>
		<pubDate>Tue, 22 May 2007 18:05:25 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/2007/05/iframe-features/</guid>
		<description><![CDATA[In the previous post I introduced my new PHP framework &#8211; iFrame. It had the reasons why you should not use the framework. In these post, I will talk of the advantages you get if you use my framework. But remember &#8211; do not use my framework. No routing &#8211; Fully file based There are [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.bin-co.com/blog/2007/05/iframe-my-php-framework/iframe-logo/' rel='attachment wp-att-20' title='iFrame Logo'><img class="intro" align="right" src='http://www.bin-co.com/blog/wp-content/uploads/2007/05/iframe.png' alt='iFrame Logo' /></a></p>
<p class="intro">In the previous post I introduced my new <a href="http://www.bin-co.com/blog/2007/05/iframe-my-php-framework/">PHP framework &#8211; iFrame</a>. It had the reasons why you should not use the framework. In these post, I will talk of the advantages you get if you use my framework. But  remember &#8211; do not use my framework.</p>
<h2>No routing &#8211; Fully file based</h2>
<p>There are no complicated routing rules &#8211; the URL should specify which file should be used. For example&#8230;</p>
<p><code>http://www.example.com/user/create.php</code></p>
<p>Here, &#8216;user&#8217; is the controller and &#8216;create&#8217; is the action. </p>
<h2>Folder Structure</h2>
<p>Like many other frameworks, iFrame has a rigid folder structure.</p>
<pre>/
+-common.php
+-configuration.php
+-/includes/  #System files
+-index.php
+-/user/
	+-index.php
	+-<span class="special">create.php</span>
+-/templates/
	+-index.php
	+-/user/
		+-index.php
		+--<span class="highlight">create.php</span>
+-/js/
	+-/user/
		+--<span class="highlight">create.js</span>
+-/css/
	+-/user/
		+--<span class="highlight">create.css</span>
</pre>
<h2>Auto inclusion of CSS/JS files</h2>
<p>The system will auto include the CSS/JS files with the same file name as the current file &#8211; the files highlighted in the above &#8216;Folder Structure&#8217; will be included automatically when ever the create.php file is called.</p>
<h2>Library for Paging/Tagging</h2>
<p>These two classes are great time savers. Unfortunatly they have no documentation &#8211; yet.</p>
<h2>Small/Manageable Files</h2>
<p>The framework forces the code to be broken down into smaller parts. In this framework, one action is one file &#8211; instead of one controller per file as in other frameworks. I find this easier to manage than the other approch.</p>
<h2>Uses OOPs only when it is required</h2>
<p>I only use Object Oriented Programming only if there is a clear need to use it. This step made the system much simpler.</p>
<h2>Three Layers</h2>
<p>This framework tries to follow both MVC(server side 3 layer) and Content/Behavior/Presentation(client side 3 layer) approaches.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2007/05/iframe-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
