On Wednesday 27 September 2006 00:47, Victor Bolshov wrote:
> Could you please tell in more detail - what you mean by "a model in MVC"?

I mean a model, in the context of Model-View-Controller. As you can see in 
http://en.wikipedia.org/wiki/Model-view-controller 

<blockquote>
Model: The domain-specific representation of the information on which the 
application operates. The model is another name for the domain layer. Domain 
logic adds meaning to raw data (e.g., calculating if today is the user's 
birthday, or the totals, taxes and shipping charges for shopping cart items).
</blockquote>

So.. from where I see.. the controller should create a model to get data or to 
return data, from wherever you want (DB, XML, RPC, log, etc). The controller 
should know "the action" what should be done, the bussiness logic. The model 
should know what to do with the data, validate the data, and all what is 
related with data.

Now, I do not see any solution for that in ZF and I thought Zend_Db_Table 
could be use as a solution, but I was wrong and I started the post to see if 
anyone had the same idea and if anyone has solved that.

I said "Model in MVC" to let people understand the context, so no one gets 
confused with "a model/guide to follow" or "a hot-long-legs-model"



-- 
Stuardo -StR- Rodríguez
.-[Just me and the world I created]-.
email: [EMAIL PROTECTED]
www: http://strgt.cjb.net
phpgt: http://php.develsystems.com

Reply via email to