<?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>Samantha Tec Blog &#187; PHP</title>
	<atom:link href="http://samanthatec.info/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://samanthatec.info</link>
	<description>Flat world, next creative idea</description>
	<lastBuildDate>Wed, 03 Mar 2010 15:30:20 +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>Impliment MVC pattern in PHP</title>
		<link>http://samanthatec.info/2010/01/24/impliment-mvc-pattern-from-php/</link>
		<comments>http://samanthatec.info/2010/01/24/impliment-mvc-pattern-from-php/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 02:57:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[design patterns]]></category>
		<category><![CDATA[Doctrine ORM]]></category>
		<category><![CDATA[Front Controller]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://samanthatec.info/?p=7</guid>
		<description><![CDATA[Basically PHP is self-disciplined language so we can use PHP for high level enterprise projects or one page script. When PHP involves with Enterprise projects so then we have to use  enterprise architecture . MVC stands for Model , View and controller . View is Html controllers for PHP application , Controllers normally grab the [...]]]></description>
			<content:encoded><![CDATA[<p>Basically PHP is self-disciplined language so we can use PHP for high level enterprise projects or one page script. When PHP involves with Enterprise projects so then we have to use  enterprise architecture .</p>
<p>MVC stands for Model , View and controller . <strong>View</strong> is Html controllers for PHP application , <strong>Controllers</strong> normally grab the request and call for <strong>Model </strong>layer . Model layer can be split into DAO ,Service and Entity layers</p>
<p><a href="http://samanthatec.info/wp-content/uploads/2010/01/MVCrc1.gif"><img class="alignleft size-medium wp-image-10" title="MVCrc1" src="http://samanthatec.info/wp-content/uploads/2010/01/MVCrc1-231x300.gif" alt="" width="231" height="300" /></a>Most of the latest PHP frameworks support to develop  MVC applications. <a href="http://www.zend.com" target="_blank">Zend</a> and <a href="http://www.symfony-project.org" target="_blank">Symfony</a> facilitate with Front Controller pattern and MVC pattern. Front Controller pattern means all application requests come through one single file ( basically via index.php file)</p>
<p><span style="text-decoration: underline;"><strong>View</strong></span></p>
<p>Xhtml , Javascript , CSS are used in this layer. Modern applications replace java script with browser-compatibility <a href="http://jquery.com/" target="_blank">Jquery.</a> CSS chunks it for screen.css , form.css, table.css and print.css .</p>
<p><span style="text-decoration: underline;"><strong>Controller</strong></span></p>
<p>Controller is for handling the actions of an application. Zend Framework provide Zend_Controller_Action base class and Symfony provide sfActions base class for handling incoming request of application<span style="text-decoration: underline;"><strong> </strong></span></p>
<p><span style="text-decoration: underline;"><strong>Model</strong></span></p>
<p><a href="http://www.doctrine-project.org" target="_blank">Doctrine ORM</a> come to picture and replaces DAO and Entity layer of modern days PHP application. All the relations can be defined in .yml file and auto-generate the entity class and populate the widely used database. Doctrine is provided with DQL which is portable in many popular databases.</p>
<p>we can implement Service layer of the application by applying widely-known design patterns.</p>
<p><script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script><br />
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-12644914-1");
pageTracker._trackPageview();
} catch(err) {}</script></p>
]]></content:encoded>
			<wfw:commentRss>http://samanthatec.info/2010/01/24/impliment-mvc-pattern-from-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
