<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Write your own PHP MVC Framework (Part 1)</title>
	<atom:link href="http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/</link>
	<description>on web development</description>
	<pubDate>Wed, 10 Mar 2010 12:03:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Toy</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-2/#comment-4539</link>
		<dc:creator>Toy</dc:creator>
		<pubDate>Tue, 02 Feb 2010 12:40:53 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-4539</guid>
		<description>I was wondering. I downloaded your example and installed on my machine. But when I browse to http://localhost/framework it didn't go to http://localhost/framework/public. The browser kept showing the listing of directories and files of framework folder. Thanks! Please help me</description>
		<content:encoded><![CDATA[<p>I was wondering. I downloaded your example and installed on my machine. But when I browse to <a href="http://localhost/framework" rel="nofollow">http://localhost/framework</a> it didn&#8217;t go to <a href="http://localhost/framework/public" rel="nofollow">http://localhost/framework/public</a>. The browser kept showing the listing of directories and files of framework folder. Thanks! Please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zyx</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-4490</link>
		<dc:creator>Zyx</dc:creator>
		<pubDate>Thu, 28 Jan 2010 18:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-4490</guid>
		<description>Just a technical note. The code presented in this article does not actually show MVC pattern, but MVP (Model-View-Presenter). In real MVC the only thing the controller does is selecting models and views. Templates, if any, are hidden UNDER the view, and database access, under the view. Moreover, view takes the data directly from the model without the controller serving as a proxy.

On the other hand, in MVP, the role of model and view is reduced to raw obtaining the data and raw displaying, and all the data transmission goes through a central "presenter" and this is what has been shown in this tutorial and what is actually implemented in 99.9% of PHP frameworks.</description>
		<content:encoded><![CDATA[<p>Just a technical note. The code presented in this article does not actually show MVC pattern, but MVP (Model-View-Presenter). In real MVC the only thing the controller does is selecting models and views. Templates, if any, are hidden UNDER the view, and database access, under the view. Moreover, view takes the data directly from the model without the controller serving as a proxy.</p>
<p>On the other hand, in MVP, the role of model and view is reduced to raw obtaining the data and raw displaying, and all the data transmission goes through a central &#8220;presenter&#8221; and this is what has been shown in this tutorial and what is actually implemented in 99.9% of PHP frameworks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-3665</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Fri, 11 Dec 2009 15:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-3665</guid>
		<description>This is the first MVC article that I can actually understand!  Seems like everyone else is so far out on their OO tripping (as in LSD), their articles read like a Shirley McLain out of body experience.   Not good for people like me who have jobs where the boss actually expects something to get done (besides pretty UML diagrams).  Thanks for the clear code, design and descriptions.</description>
		<content:encoded><![CDATA[<p>This is the first MVC article that I can actually understand!  Seems like everyone else is so far out on their OO tripping (as in LSD), their articles read like a Shirley McLain out of body experience.   Not good for people like me who have jobs where the boss actually expects something to get done (besides pretty UML diagrams).  Thanks for the clear code, design and descriptions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RDF</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-3274</link>
		<dc:creator>RDF</dc:creator>
		<pubDate>Fri, 27 Nov 2009 11:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-3274</guid>
		<description>It's nice! few time ago I was decided to create my own framework because I was looking for a really light-weight one (I don't need a lot of complicated "helpers" and I haven't time to spend learning new "owner-vision" MVC frameworks.
You have started just the framework that I need. Thanks for your contribution!</description>
		<content:encoded><![CDATA[<p>It&#8217;s nice! few time ago I was decided to create my own framework because I was looking for a really light-weight one (I don&#8217;t need a lot of complicated &#8220;helpers&#8221; and I haven&#8217;t time to spend learning new &#8220;owner-vision&#8221; MVC frameworks.<br />
You have started just the framework that I need. Thanks for your contribution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-3054</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 18 Nov 2009 20:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-3054</guid>
		<description>Latecomer to the party...
Very informative.  Of all the MVC fo PHP articles I've looked at over the last couple of weeks, this one far and away is the most readable, straightforward and digestable.  Comment1: "class sqlQuery is the heart of the framework" - I have to disagree.  For me, its the use of the call_user_func_array function.  It all made sense when I realized this was just one big exercise in configuration (sort of) and dynamic code execution, with this function making it happen.  Comment2: While I'm also a big fan of dynamic sql, I wonder if the sqlQuery class (at least the query-building part) isn't just a little overboard on the abstraction side.  I can appreciate DB objects having logical UI and App counterparts, but I wonder if it isn't a bit overkill.  In my mind, the DAO should have the say in what the SQL looks like (notwithstanding parameter values) with the name of the function that returns the SQL being the beneficiary of abstraction.  Just a thought.  Again, thanks for an excellent, and free, online learning experience - a real eye-opener!</description>
		<content:encoded><![CDATA[<p>Latecomer to the party&#8230;<br />
Very informative.  Of all the MVC fo PHP articles I&#8217;ve looked at over the last couple of weeks, this one far and away is the most readable, straightforward and digestable.  Comment1: &#8220;class sqlQuery is the heart of the framework&#8221; - I have to disagree.  For me, its the use of the call_user_func_array function.  It all made sense when I realized this was just one big exercise in configuration (sort of) and dynamic code execution, with this function making it happen.  Comment2: While I&#8217;m also a big fan of dynamic sql, I wonder if the sqlQuery class (at least the query-building part) isn&#8217;t just a little overboard on the abstraction side.  I can appreciate DB objects having logical UI and App counterparts, but I wonder if it isn&#8217;t a bit overkill.  In my mind, the DAO should have the say in what the SQL looks like (notwithstanding parameter values) with the name of the function that returns the SQL being the beneficiary of abstraction.  Just a thought.  Again, thanks for an excellent, and free, online learning experience - a real eye-opener!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-2097</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 07 Oct 2009 22:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-2097</guid>
		<description>Thank you, thank you, thank you. I have been racking my brain on how to get the RewriteRules to work and this post finally helped me. Of course I needed to split it out into two seperate .htaccess files. The tutorial is great.</description>
		<content:encoded><![CDATA[<p>Thank you, thank you, thank you. I have been racking my brain on how to get the RewriteRules to work and this post finally helped me. Of course I needed to split it out into two seperate .htaccess files. The tutorial is great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Developer</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-1986</link>
		<dc:creator>PHP Developer</dc:creator>
		<pubDate>Fri, 02 Oct 2009 07:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-1986</guid>
		<description>Thanks for writing this post for better understanding to use php mvc.</description>
		<content:encoded><![CDATA[<p>Thanks for writing this post for better understanding to use php mvc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep Narayanan</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-1933</link>
		<dc:creator>Pradeep Narayanan</dc:creator>
		<pubDate>Tue, 29 Sep 2009 16:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-1933</guid>
		<description>Dear sir,
            i am so much interested in mvc architecture.While i am implementing these code i am getting the following error:
 Fatal error: Class 'ItemsController' not found in C:\xampp\htdocs\todo\library\shared.php on line 65

pls help me...</description>
		<content:encoded><![CDATA[<p>Dear sir,<br />
            i am so much interested in mvc architecture.While i am implementing these code i am getting the following error:<br />
 Fatal error: Class &#8216;ItemsController&#8217; not found in C:\xampp\htdocs\todo\library\shared.php on line 65</p>
<p>pls help me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casper</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-1601</link>
		<dc:creator>Casper</dc:creator>
		<pubDate>Fri, 11 Sep 2009 00:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-1601</guid>
		<description>Hi Anant, 

I am implementing an ecommerce website and looking for a php mvc framework. Thanks for developing this easy to use php mvc. Manage to understand this in 2 days and get the core functions working in 1.

I have a question on bread crumb trails. I have worked out a solution on implementing bread crumb trails with this framework; but before I go ahead and implement, I would like to seek your advice on that. Just briefly, how would you implement the generation of bread crumb trails with your mvc framework?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Anant, </p>
<p>I am implementing an ecommerce website and looking for a php mvc framework. Thanks for developing this easy to use php mvc. Manage to understand this in 2 days and get the core functions working in 1.</p>
<p>I have a question on bread crumb trails. I have worked out a solution on implementing bread crumb trails with this framework; but before I go ahead and implement, I would like to seek your advice on that. Just briefly, how would you implement the generation of bread crumb trails with your mvc framework?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin Graham</title>
		<link>http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/comment-page-1/#comment-1493</link>
		<dc:creator>Dustin Graham</dc:creator>
		<pubDate>Wed, 02 Sep 2009 17:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=69#comment-1493</guid>
		<description>@Anant: Very nice tutorial. I love the way you have redirected everything to the public directory, then use the index to call the bootstrapper and go from there. I have been considering redesigning my CMS for my personal site as well as my business site and now you have given me a beautiful starting point. I never publish my systems, but I do develop a lot of sites for personal business projects so this will be a nice way to create a portable base CMS for developing new sites.

I'm not going to use the applications directory or the MVC quite the same way as you have. I'm still going to keep the MVC concept, but the way I plan to do it is to have in the application directory a folder for each page, and within that folder I'll have a controller, model, views. So for example.com/articles/ar-15/ it would find the folder application/articles/controller.php and run that with ar-15 as the arguments. Or, for example.com/admin/newsletter/edit/15/ it would find application/admin/newsletter/edit/controller.php and 15 would be the argument.

Or, I could also omit the edit directory, and the code would automagically find application/admin/newsletter/controller.php and send in $args = array('edit', '15'); up to my decision on if I want to break down the edit/add/manage/send/view options of admin/newsletter into different pages each with their own controller, or put them all in the newsletter's controller and redirect as necessary.

Anyways, I really enjoyed your article. I hardly ever comment on websites but I enjoyed your implementation so much I wanted to say thanks.

P.S. Check out gravatars. ;-)</description>
		<content:encoded><![CDATA[<p>@Anant: Very nice tutorial. I love the way you have redirected everything to the public directory, then use the index to call the bootstrapper and go from there. I have been considering redesigning my CMS for my personal site as well as my business site and now you have given me a beautiful starting point. I never publish my systems, but I do develop a lot of sites for personal business projects so this will be a nice way to create a portable base CMS for developing new sites.</p>
<p>I&#8217;m not going to use the applications directory or the MVC quite the same way as you have. I&#8217;m still going to keep the MVC concept, but the way I plan to do it is to have in the application directory a folder for each page, and within that folder I&#8217;ll have a controller, model, views. So for example.com/articles/ar-15/ it would find the folder application/articles/controller.php and run that with ar-15 as the arguments. Or, for example.com/admin/newsletter/edit/15/ it would find application/admin/newsletter/edit/controller.php and 15 would be the argument.</p>
<p>Or, I could also omit the edit directory, and the code would automagically find application/admin/newsletter/controller.php and send in $args = array(&#8217;edit&#8217;, &#8216;15&#8242;); up to my decision on if I want to break down the edit/add/manage/send/view options of admin/newsletter into different pages each with their own controller, or put them all in the newsletter&#8217;s controller and redirect as necessary.</p>
<p>Anyways, I really enjoyed your article. I hardly ever comment on websites but I enjoyed your implementation so much I wanted to say thanks.</p>
<p>P.S. Check out gravatars. <img src='http://anantgarg.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
