Bobby Heid
bheid at sc.rr.com
Sat Nov 3 17:15:28 CDT 2007
Hi Bryan, Here is how I understand it. MVP In MVP the presenter communicates with the model and with the view, AND the model and view can communicate. An example. The presenter tells the view to load a list based upon some ID. The view can then query the model to return the data (maybe a dataset) for a given ID. MVC In MVC the model and the view never communicate with each other. For the above example, the presenter would query the model for the data for a given ID and then tell the view to display the dataset. Basically, the MVP pattern allows the view and model to communicate and the MVC pattern does not. I just implemented my first MVC patterned program using CAB at work a couple of months ago. I really like the MVC pattern over the MVP pattern as it is clearer to me. I like it enough to use being using it now to implement a side project that I am currently working on. I know this is probably clear as mud, but I am knew to this stuff. Thanks, Bobby -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Saturday, November 03, 2007 5:43 PM To: Discussion of Hardware and Software issues Subject: [dba-Tech] Model-View-Controller Does anyone have a short (and good) explanation of MVC coding? I've read several articles on it and it still doesn't make any sense to me. I know Ruby0on-Rails projects use MVC and so do several PHP frameworks, but I'm still at a loss of the difference between the Model and Controller. I get the view portion, that's the UI parts. Help. Please? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com