Welcome Guest, Not a member yet? Register   Sign In
MVC approach to large sets of data with queries from different database tables
#3

[eluser]M52 Studios[/eluser]
Thanks for the reply! Let me see if I can explain what I mean a little better Smile

Controller:
Get client-query from model
Send client-query to view

View:
Foreach Client-Query
display ID Name
(Now here's where the problem comes in)
based on the ID, I need to query another table to get the client's pictures.

So is there a way for me to get all this done in the initial controller and send all the information to the view, without going back and forth?

So to have Controller->Model->Controller->View
Instead of
Controller->Model->Controller->View->Model(to query the pics)->View

Does that kind of make sense?


Messages In This Thread
MVC approach to large sets of data with queries from different database tables - by El Forum - 04-05-2011, 10:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB