Hmmm these are very basic questions and should take a lot of time to explain.
All depends on what you have and what you want.
If I were you, I would start with building the database. So you know what
tabels you have, and the fields you need. Then you can start thinking about
your website structure and how you to implement the models. Start reading
about how to setup a zend framework website. And while you're reading, think
about your website, what you can use and how you can do it.

Another remark. Is it really usefull to setup an zend-based website if
you're only having 2 or 3 tabels?

If you have your tabels, and maybe an idea about your models, you can post
it here, than we maybe can help you on the track. But like I said, it's
impossible to teach you here how to program.


Julian102 wrote:
> 
> Thank you both for your replys they're very much appreciated. I am still
> however having some difficulty in understanding the model and would be
> very greatful if you could look at the following simple example and let me
> know where im going wrong.
> 
> I am about to build a simple site where users can add posts.
> 
> At the moment my approach would be to first look at the nouns and create
> database tables based on those nouns so a post table and user table.
> 
> To build the model I would then create a user class, users class, post
> class and posts class (just because of my current understanding based on
> ror and zf tutorials).
> 
> It seems this process breaks down when you start to write complicated
> queries which bring back data from multiple tables because it is not clear
> where in the model the queries would be stored. Plus bills posts has
> seemed to put a nail in the coffin of that approach.
> 
> Can anyone explain to me or show me somewhere that explains on a very high
> level for a beginner how the model fits into a system and how one should
> think about it when designing an application.
> 
> For example should the model be designed at the same time the database is
> designed?
> 
> Again any help would be greatly appreciated.
> 


-----
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/Newbie-quesiton---How-do-queries-that-join-multiple-tables-fit-into-the-model-in-the-MVC-tp20919944p20962124.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to