What is MVC? A Primer in 10 Slides Dominique Gerald M Cimafranca [email_address] http://villageidiotsavant.com By
Model-View-Controller an  architectural pattern  in software engineering
a way of  designing  and  building  applications
object-oriented  software development
separates   application logic  from  presentation
loose coupling  between components
Without MVC Client database db=connect(database); var1=$_POST[“data1”]; var2=$_POST[“data2”]; db.query(“insert into db values var1,var2”); print “<HTML><H1>Success</H1></HTML>”; http://myapp/create.php http://myapp/read.php http://myapp/update.php http://myapp/delete.php database application presentation All in one program! delete.php update.php read.php create.php
What happens when you... change the database settings?
change the database design?
change the database?

What is MVC?

  • 1.
    What is MVC?A Primer in 10 Slides Dominique Gerald M Cimafranca [email_address] http://villageidiotsavant.com By
  • 2.
    Model-View-Controller an architectural pattern in software engineering
  • 3.
    a way of designing and building applications
  • 4.
  • 5.
    separates application logic from presentation
  • 6.
    loose coupling between components
  • 7.
    Without MVC Clientdatabase db=connect(database); var1=$_POST[“data1”]; var2=$_POST[“data2”]; db.query(“insert into db values var1,var2”); print “<HTML><H1>Success</H1></HTML>”; http://myapp/create.php http://myapp/read.php http://myapp/update.php http://myapp/delete.php database application presentation All in one program! delete.php update.php read.php create.php
  • 8.
    What happens whenyou... change the database settings?
  • 9.
  • 10.