pgianf
|
|
« on: July 09, 2008, 06:14:39 » |
|
Hi i've just started in using pureMVC and trying to make the best code distribution among MVC components. I'm thinking about when and how use controllers. I've seen pureMVC application where mediators call directly proxys without usign commands. So the role of the controller rise only when there is the need to make really complex business job? for example in a air application what best practice i should use for: - retreive data from db with a sql query -> mediator calls the proxy which returns an array as result; - retrieve a list of users from a remote server via HTTP -> mediator calls directly the proxy which call the remote service, process xml, then return a user array Mainly these are the acttivities involved in my application, nothing more complex like transactions, even if these simple jobs could be done via mediator/proxy is a good practice decouping inserting commands beetwen them? Paolo
|