ZF2, I need advice about structure

For programming and general questions on Zend Framework

ZF2, I need advice about structure

Postby dam358 on Tue Oct 30, 2012 7:01 pm

Hello,
I'm quite new in ZF2 (1 month) and i'm working on it.

I've got a question about the application that i'm developping.
This application will grow, offer multiple services to a lot of users and ask a lot of tables in database.

So, in the construction of my application, do you think it's better to use the vision of 1table/1model (as in tutorial with the Album) or use some "shortcuts".
For example, to get data in my structure, instead of calling 20 models calling 20 tables and then store datas, do a "big request" and directly store datas in my structure ?

I think this 2nd way will be easier and faster to do but harder to evolve in the future.

Could you help me ? I need opinions.

Thanks.
dam358
 
Posts: 2
Joined: Fri Oct 12, 2012 9:38 am

Re: ZF2, I need advice about structure

Postby chantrelle on Fri Jan 04, 2013 3:27 am

Why is no-one from Zend answering these questions? HELLO ZEND?
chantrelle
 
Posts: 3
Joined: Fri Jan 04, 2013 1:50 am

Re: ZF2, I need advice about structure

Postby frandy on Sat Jan 05, 2013 3:12 pm

Hey,

I'm not someone from Zend, but I may can give you an advise.
As far as we learned it in our application design courses, for each table one model. You can go further be creating a model for more complex sql views. Better would be to use service classes, that would group tasks involving multiple models which would depend on how the tables are related.

Best regards
frandy
 
Posts: 1
Joined: Sat Jan 05, 2013 3:03 pm


Return to Zend Framework

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests