<?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: AJAX MVC (so to speak)</title>
	<atom:link href="http://www.phpied.com/ajax-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/ajax-mvc/</link>
	<description>Stoyan&#039;s blog about &#60;a href=&#34;/category/xhtml&#34; class=&#34;tag-minor&#34;&#62;(x)html(5)&#60;/a&#62;, &#60;a href=&#34;/category/ajax&#34; class=&#34;tag-major&#34;&#62;ajax&#60;/a&#62;, &#60;a href=&#34;/category/bookmarklets&#34; class=&#34;tag-major&#34;&#62;bookmarklets&#60;/a&#62;, &#60;a href=&#34;/category/browsers&#34; class=&#34;tag-minor&#34;&#62;browsers&#60;/a&#62;, &#60;a href=&#34;/category/css&#34; class=&#34;tag-normal&#34;&#62;css&#60;/a&#62;, &#60;a href=&#34;/category/firebug&#34; class=&#34;tag-minor&#34;&#62;firebug&#60;/a&#62;, &#60;a href=&#34;/category/javascript&#34; class=&#34;tag-numero-uno&#34;&#62;javascript&#60;/a&#62;, &#60;a href=&#34;/category/json&#34; class=&#34;tag-normal&#34;&#62;json&#60;/a&#62;, &#60;a href=&#34;/category/mdb2&#34; class=&#34;tag-minor&#34;&#62;mdb2&#60;/a&#62;, &#60;a href=&#34;/category/mysql&#34; class=&#34;tag-normal&#34;&#62;mysql&#60;/a&#62;, &#60;a href=&#34;/category/pear&#34; class=&#34;tag-numero-uno&#34;&#62;pear&#60;/a&#62;, &#60;a href=&#34;/category/performance&#34; class=&#34;tag-major&#34;&#62;performance&#60;/a&#62;, &#60;a href=&#34;/category/php&#34; class=&#34;tag-numero-uno&#34;&#62;php&#60;/a&#62;, &#60;a href=&#34;/category/phpbb&#34; class=&#34;tag-major&#34;&#62;phpbb&#60;/a&#62;, &#60;a href=&#34;/category/tools&#34; class=&#34;tag-normal&#34;&#62;tools&#60;/a&#62;, &#60;a href=&#34;/category/yslow&#34; class=&#34;tag-minor&#34;&#62;yslow&#60;/a&#62;, &#60;a href=&#34;/category/yui&#34; class=&#34;tag-normal&#34;&#62;yui&#60;/a&#62;, &#60;a href=&#34;/category/writing&#34; class=&#34;tag-minor&#34;&#62;writing&#60;/a&#62;, &#60;a href=&#34;/category/music&#34; class=&#34;tag-major&#34;&#62;music&#60;/a&#62;,... &#60;a href=&#34;/category/life-and-everything&#34; class=&#34;tag-normal&#34;&#62;life and everything&#60;/a&#62;.</description>
	<lastBuildDate>Wed, 08 Feb 2012 21:54:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: cyberlocos</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-77802</link>
		<dc:creator>cyberlocos</dc:creator>
		<pubDate>Tue, 31 May 2011 23:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-77802</guid>
		<description>Install ZEUS Bot FREE - hack bank acc. www.cyberlocos.net Ver foro - Malwares - Troyanos - Crimewarez - Botnets</description>
		<content:encoded><![CDATA[<p>Install ZEUS Bot FREE &#8211; hack bank acc. <a href="http://www.cyberlocos.net" rel="nofollow">http://www.cyberlocos.net</a> Ver foro &#8211; Malwares &#8211; Troyanos &#8211; Crimewarez &#8211; Botnets</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-71546</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Sat, 26 Sep 2009 19:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-71546</guid>
		<description>I know this post has been written long ago, but I happened to be researching about architectural patterns and have found that there are diverse approaches (MVA, MVP, and 2 layers MVC). Have to say, that I like how you explain it but mixing js with html, or js with php is not so well separated, as the MVC fundamentals advocate.

I like the Presentation Model pattern (also known as Application pattern) but will  scheme the others approaches too.

MVA:

http://blog.palantirtech.com/2009/04/20/model-view-adapter/

     Model    Adapter      View
eg: PHP            PHP, JS             HTML, CSS 

Presentation Model

http://canoo.com/blog/2008/02/01/the-world-needs-more-models/
http://martinfowler.com/eaaDev/PresentationModel.html

      Model  Controller  Presentation Model  View
eg: PHP           PHP                      JS                          HTML, CSS

MVC 2 layers:
 
Client:     Model  Controller View         &amp;&amp;       Server    Model  Controller  View
eg:          PHP            PHP         XML, JASON                            JS                JS                HTML, XML


I know these patterns say almost the same, but hey just pick one, try it and look which one fits you better. For my purposes I choosed the Model Presenter with an AJAX approach, as it is based on an desktop application and therefore it resembles AJAX objective... bring the application features to a web platform.</description>
		<content:encoded><![CDATA[<p>I know this post has been written long ago, but I happened to be researching about architectural patterns and have found that there are diverse approaches (MVA, MVP, and 2 layers MVC). Have to say, that I like how you explain it but mixing js with html, or js with php is not so well separated, as the MVC fundamentals advocate.</p>
<p>I like the Presentation Model pattern (also known as Application pattern) but will  scheme the others approaches too.</p>
<p>MVA:</p>
<p><a href="http://blog.palantirtech.com/2009/04/20/model-view-adapter/" rel="nofollow">http://blog.palantirtech.com/2009/04/20/model-view-adapter/</a></p>
<p>     Model    Adapter      View<br />
eg: PHP            PHP, JS             HTML, CSS </p>
<p>Presentation Model</p>
<p><a href="http://canoo.com/blog/2008/02/01/the-world-needs-more-models/" rel="nofollow">http://canoo.com/blog/2008/02/01/the-world-needs-more-models/</a><br />
<a href="http://martinfowler.com/eaaDev/PresentationModel.html" rel="nofollow">http://martinfowler.com/eaaDev/PresentationModel.html</a></p>
<p>      Model  Controller  Presentation Model  View<br />
eg: PHP           PHP                      JS                          HTML, CSS</p>
<p>MVC 2 layers:</p>
<p>Client:     Model  Controller View         &amp;&amp;       Server    Model  Controller  View<br />
eg:          PHP            PHP         XML, JASON                            JS                JS                HTML, XML</p>
<p>I know these patterns say almost the same, but hey just pick one, try it and look which one fits you better. For my purposes I choosed the Model Presenter with an AJAX approach, as it is based on an desktop application and therefore it resembles AJAX objective&#8230; bring the application features to a web platform.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CODERS &#187; AJAX en MVC</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-70872</link>
		<dc:creator>CODERS &#187; AJAX en MVC</dc:creator>
		<pubDate>Tue, 19 May 2009 02:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-70872</guid>
		<description>[...] ideas interesantes, les invito a leer el articulo completo desde phpied.com &#8230;  Link al post http://www.phpied.com/ajax-mvc/ Link al post en Castellano - (via Google translate) [...]</description>
		<content:encoded><![CDATA[<p>[...] ideas interesantes, les invito a leer el articulo completo desde phpied.com &#8230;  Link al post <a href="http://www.phpied.com/ajax-mvc/" rel="nofollow">http://www.phpied.com/ajax-mvc/</a> Link al post en Castellano &#8211; (via Google translate) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-70053</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 10 Dec 2008 11:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-70053</guid>
		<description>Scott, I think you&#039;re quibbling over implementation details there... the point his post was trying to make it that you can fit AJAX into MVC, and to throw out a brief example for the sake of discussion than provide a definitive framework other people would use to build apps in.

I&#039;m currently working on the same issue and it was nice to get some ideas from Google before I start coding. Thanks for the article.</description>
		<content:encoded><![CDATA[<p>Scott, I think you&#8217;re quibbling over implementation details there&#8230; the point his post was trying to make it that you can fit AJAX into MVC, and to throw out a brief example for the sake of discussion than provide a definitive framework other people would use to build apps in.</p>
<p>I&#8217;m currently working on the same issue and it was nice to get some ideas from Google before I start coding. Thanks for the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott S. McCoy</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-70025</link>
		<dc:creator>Scott S. McCoy</dc:creator>
		<pubDate>Sun, 30 Nov 2008 07:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-70025</guid>
		<description>This is not really a framework.  Typically, you don&#039;t unzip a framework and program into it.  In fact, you never do -- that would be called a template; indeed, this is an &quot;application template&quot;.  Meanwhile, it&#039;s not really an MVC either, an MVC is an application in which the model is consumable by a view (note: models in that context are typically objects...data structures which have behavior) and in your case, the model is ... a function?

Also I should mention, that there are better ways to deal with dynamic dispatch than a big switch statement -- in fact, that&#039;s probably the worst way.  A dispatch table would be more appropriate, since PHP doesn&#039;t particularly have function references (atleast, last I checked...it&#039;s been some years, probably does now) you could simply use dynamic method-name invocation to simulate a dispatch table ($object-&gt;$method()).  But in an ideal scenario, and in a framework for that matter, usually your controller is data driven, not a big switch statement you have to add another case to for each new bit of functionality (that doesn&#039;t sound very maintenance friendly).</description>
		<content:encoded><![CDATA[<p>This is not really a framework.  Typically, you don&#8217;t unzip a framework and program into it.  In fact, you never do &#8212; that would be called a template; indeed, this is an &#8220;application template&#8221;.  Meanwhile, it&#8217;s not really an MVC either, an MVC is an application in which the model is consumable by a view (note: models in that context are typically objects&#8230;data structures which have behavior) and in your case, the model is &#8230; a function?</p>
<p>Also I should mention, that there are better ways to deal with dynamic dispatch than a big switch statement &#8212; in fact, that&#8217;s probably the worst way.  A dispatch table would be more appropriate, since PHP doesn&#8217;t particularly have function references (atleast, last I checked&#8230;it&#8217;s been some years, probably does now) you could simply use dynamic method-name invocation to simulate a dispatch table ($object-&gt;$method()).  But in an ideal scenario, and in a framework for that matter, usually your controller is data driven, not a big switch statement you have to add another case to for each new bit of functionality (that doesn&#8217;t sound very maintenance friendly).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: burun estetigi</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-69898</link>
		<dc:creator>burun estetigi</dc:creator>
		<pubDate>Wed, 01 Oct 2008 14:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-69898</guid>
		<description>The way I see it is that the view and controllers on the client side interact with a client side model. That client side model then handles the data retrieving and sending.</description>
		<content:encoded><![CDATA[<p>The way I see it is that the view and controllers on the client side interact with a client side model. That client side model then handles the data retrieving and sending.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dishearten</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-64217</link>
		<dc:creator>dishearten</dc:creator>
		<pubDate>Sat, 19 Apr 2008 16:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-64217</guid>
		<description>Hi. Congratulations for your article very useful. But I have a question, Working with Object Oriented Programming, it is possible to retrieve objects from the server. Which is the best way to achieve (An example if possible).</description>
		<content:encoded><![CDATA[<p>Hi. Congratulations for your article very useful. But I have a question, Working with Object Oriented Programming, it is possible to retrieve objects from the server. Which is the best way to achieve (An example if possible).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-63827</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Tue, 26 Feb 2008 07:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-63827</guid>
		<description>We&#039;re in the process of launching a true JavaScript MVC framework called ... what else but JavaScriptMVC ( http://javascriptmvc.com ).  It has everything you&#039;d expect in an MVC framework:

Include - can include and compress files cross domain.

Model - Integrated Jester REST library.

Controller - Best in class event delegation library.  Function names are combination css selectors and event names. 

View - Integrated EJS library (embeddedjs.com)

And, we&#039;ve got things like gears, history, and remote scripting integrated as well.</description>
		<content:encoded><![CDATA[<p>We&#8217;re in the process of launching a true JavaScript MVC framework called &#8230; what else but JavaScriptMVC ( <a href="http://javascriptmvc.com" rel="nofollow">http://javascriptmvc.com</a> ).  It has everything you&#8217;d expect in an MVC framework:</p>
<p>Include &#8211; can include and compress files cross domain.</p>
<p>Model &#8211; Integrated Jester REST library.</p>
<p>Controller &#8211; Best in class event delegation library.  Function names are combination css selectors and event names. </p>
<p>View &#8211; Integrated EJS library (embeddedjs.com)</p>
<p>And, we&#8217;ve got things like gears, history, and remote scripting integrated as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sing Chyun</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-63218</link>
		<dc:creator>Sing Chyun</dc:creator>
		<pubDate>Sat, 17 Nov 2007 02:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-63218</guid>
		<description>Hi,

Nice concepts you have here! Almost a year after your posting, there&#039;s a paper on using AJAX to implement the business controller:

http://wisdomofganesh.blogspot.com/2007/10/life-above-service-tier.html

And the corresponding discussion at The Server Side:

http://www.theserverside.com/news/thread.tss?thread_id=47213</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Nice concepts you have here! Almost a year after your posting, there&#8217;s a paper on using AJAX to implement the business controller:</p>
<p><a href="http://wisdomofganesh.blogspot.com/2007/10/life-above-service-tier.html" rel="nofollow">http://wisdomofganesh.blogspot.com/2007/10/life-above-service-tier.html</a></p>
<p>And the corresponding discussion at The Server Side:</p>
<p><a href="http://www.theserverside.com/news/thread.tss?thread_id=47213" rel="nofollow">http://www.theserverside.com/news/thread.tss?thread_id=47213</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nuntius</title>
		<link>http://www.phpied.com/ajax-mvc/#comment-61780</link>
		<dc:creator>Nuntius</dc:creator>
		<pubDate>Thu, 02 Aug 2007 22:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-mvc/#comment-61780</guid>
		<description>First of all thanks for the example it clears things up for me about how others are working with MVC. My criticism of this particular methodology would be that all of your &#039;module parts&#039; are abstract. How do you manage them as one piece should you want to reuse the whole module? While I agree with the core part of the concept I am wondering about how difficult it would be to manage. 

I think my approach is more of a &quot;MVC Fusebox&quot;. In my scenario you operate on with the AJAX and &quot;business&quot; controller as an AJAX engine. Then when you drop in a module and make a menu reference it is live. I would be interested to hear your thoughts on this approach.</description>
		<content:encoded><![CDATA[<p>First of all thanks for the example it clears things up for me about how others are working with MVC. My criticism of this particular methodology would be that all of your &#8216;module parts&#8217; are abstract. How do you manage them as one piece should you want to reuse the whole module? While I agree with the core part of the concept I am wondering about how difficult it would be to manage. </p>
<p>I think my approach is more of a &#8220;MVC Fusebox&#8221;. In my scenario you operate on with the AJAX and &#8220;business&#8221; controller as an AJAX engine. Then when you drop in a module and make a menu reference it is live. I would be interested to hear your thoughts on this approach.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

