<?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: Wheres the Model in Zend Frameworks MVC?</title>
	<atom:link href="http://www.childofthemachine.com/blog/2008/12/wheres-the-model-in-zend-frameworks-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.childofthemachine.com/blog/2008/12/wheres-the-model-in-zend-frameworks-mvc/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Oct 2011 14:33:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Grant Perry</title>
		<link>http://www.childofthemachine.com/blog/2008/12/wheres-the-model-in-zend-frameworks-mvc/comment-page-1/#comment-75</link>
		<dc:creator>Grant Perry</dc:creator>
		<pubDate>Wed, 10 Dec 2008 02:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.grantusmaximus.com/web/?p=68#comment-75</guid>
		<description>Agree the Model is a rather diverse beast, and one I myself have been a little overwhelmed designing one for my own reuse…

For others reading this post I should have mentioned earlier the Zend_Model (http://framework.zend.com/wiki/pages/viewpage.action?pageId=41564) proposal by Jurriën Stutterheim a core contributor from the Zym Framework (http://www.zym-project.com) which coincidently has a Zym_Model (http://code.google.com/p/zym/source/browse) component in the frameworks laboratory similar to the original Zend_Model framework proposal.

As mentioned I’ve started work on a Model component for myself and future projects which I hope will address some of the issues/features raising in the discussion on the Zend_Model proposal (but not all since I have a smaller scope than that of a ‘framework’ component)… I’ll share it once I’ve finished if I’m happy with it - although I’m rarely satisfied with my own work ;)</description>
		<content:encoded><![CDATA[<p>Agree the Model is a rather diverse beast, and one I myself have been a little overwhelmed designing one for my own reuse…</p>
<p>For others reading this post I should have mentioned earlier the Zend_Model (<a href="http://framework.zend.com/wiki/pages/viewpage.action?pageId=41564" rel="nofollow">http://framework.zend.com/wiki/pages/viewpage.action?pageId=41564</a>) proposal by Jurriën Stutterheim a core contributor from the Zym Framework (<a href="http://www.zym-project.com" rel="nofollow">http://www.zym-project.com</a>) which coincidently has a Zym_Model (<a href="http://code.google.com/p/zym/source/browse" rel="nofollow">http://code.google.com/p/zym/source/browse</a>) component in the frameworks laboratory similar to the original Zend_Model framework proposal.</p>
<p>As mentioned I’ve started work on a Model component for myself and future projects which I hope will address some of the issues/features raising in the discussion on the Zend_Model proposal (but not all since I have a smaller scope than that of a ‘framework’ component)… I’ll share it once I’ve finished if I’m happy with it &#8211; although I’m rarely satisfied with my own work ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wil Sinclair</title>
		<link>http://www.childofthemachine.com/blog/2008/12/wheres-the-model-in-zend-frameworks-mvc/comment-page-1/#comment-72</link>
		<dc:creator>Wil Sinclair</dc:creator>
		<pubDate>Fri, 05 Dec 2008 18:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.grantusmaximus.com/web/?p=68#comment-72</guid>
		<description>This are great ideas to think about. Yes, we will address the problem of models- probably in 1.9.
You know, we&#039;ve probably not stated this part of our philosophy enough. In the Zend Framework project, we typically don&#039;t address a problem if it has either of the following 2 aspects:

1) It&#039;s already been addressed well in the PHP community, and we don&#039;t see any significant value that we can add over existing solutions by building our own. ZF was designed to work well alongside other application components.

2) We don&#039;t fully understand the problem and are working with the community to see what people generally want and need.

In this case, the second point applies. One might argue that the problem of models is already solved in most- if not all- other MVC frameworks. True, but we&#039;re not convinced that we can&#039;t do it in a more flexible way yet.
The fact is that the M is the hardest thing to abstract in MVC. It is the core of your application and can look very different from application to application.
For example, M could be a DB-backed ActiveRecord. But for many people it&#039;s backed by a RESTful service. Or CouchDB. Or practically an infinite number of other things.
Some people also like to handle forms in the model. Others see them more as a responsibility of the presentation layer. This can also drastically affect where and how validation is performed.
Some people like thick controllers, other people like thin. This won&#039;t affect the view or controller abstractions significantly, but it might affect models a lot.
The issues in the model problem go on and on. The ZF team feels like it has good answers for lots of these problems, but we&#039;re not ready to say that we have all the answers yet.
So, we&#039;ve punted on it and took the widely criticized route of not introducing any model abstraction. In essence, ZF doesn&#039;t tell you what your models are at all; that&#039;s completely up to you. I lot of people see this as an omission- and it is- but hardly a resource-constrained or unintentional omission.
That said, we agree with you that there are benefits to be had from a model formalism, especially around forms. Maybe even around the concept of a resource. Please join us on the mailing lists and/or the IRC channels (#zftalk.dev would be the most appropriate for this discussion) and help us think through models to get to the design that will give us a lot of reuse without loosing all the flexibility.

Thanks for the feedback!
,Wil</description>
		<content:encoded><![CDATA[<p>This are great ideas to think about. Yes, we will address the problem of models- probably in 1.9.<br />
You know, we&#8217;ve probably not stated this part of our philosophy enough. In the Zend Framework project, we typically don&#8217;t address a problem if it has either of the following 2 aspects:</p>
<p>1) It&#8217;s already been addressed well in the PHP community, and we don&#8217;t see any significant value that we can add over existing solutions by building our own. ZF was designed to work well alongside other application components.</p>
<p>2) We don&#8217;t fully understand the problem and are working with the community to see what people generally want and need.</p>
<p>In this case, the second point applies. One might argue that the problem of models is already solved in most- if not all- other MVC frameworks. True, but we&#8217;re not convinced that we can&#8217;t do it in a more flexible way yet.<br />
The fact is that the M is the hardest thing to abstract in MVC. It is the core of your application and can look very different from application to application.<br />
For example, M could be a DB-backed ActiveRecord. But for many people it&#8217;s backed by a RESTful service. Or CouchDB. Or practically an infinite number of other things.<br />
Some people also like to handle forms in the model. Others see them more as a responsibility of the presentation layer. This can also drastically affect where and how validation is performed.<br />
Some people like thick controllers, other people like thin. This won&#8217;t affect the view or controller abstractions significantly, but it might affect models a lot.<br />
The issues in the model problem go on and on. The ZF team feels like it has good answers for lots of these problems, but we&#8217;re not ready to say that we have all the answers yet.<br />
So, we&#8217;ve punted on it and took the widely criticized route of not introducing any model abstraction. In essence, ZF doesn&#8217;t tell you what your models are at all; that&#8217;s completely up to you. I lot of people see this as an omission- and it is- but hardly a resource-constrained or unintentional omission.<br />
That said, we agree with you that there are benefits to be had from a model formalism, especially around forms. Maybe even around the concept of a resource. Please join us on the mailing lists and/or the IRC channels (#zftalk.dev would be the most appropriate for this discussion) and help us think through models to get to the design that will give us a lot of reuse without loosing all the flexibility.</p>
<p>Thanks for the feedback!<br />
,Wil</p>
]]></content:encoded>
	</item>
</channel>
</rss>

