MVC DESIGN PATTERN ©  2007   TUVINHSOFT 1a-LT/TL/TUVINHSOFT Authors: Nguyen Huu Dung Version: 1.0 Last Updated: 18-Aug-200...
MVC PATTERN INTRODUCTION  <ul><li>Model-View-Controller  ( MVC ) is an architectural pattern used in software engineering....
INTRODUCE MVC PATTERN <ul><li>Model View Controller MVC is a time tested method of separating the user interface (UI) of a...
INTRODUCE MVC PATTERN <ul><li>MVC PATTERN contains:  </li></ul><ul><li>4 main classes : </li></ul><ul><li>- FILE.CONTROLLE...
MVC PATTERN
CLASS CONTROLLERS <ul><li>Controller class control models class and views class. </li></ul><ul><li>In MVC, The controller ...
CLASS VIEWS <ul><li>Class Views renders the model into a form suitable for interaction, typically a user interface element...
CLASS MODELS <ul><li>The goal of MVC is to make the model independent of the view and controller which together form the u...
CLASS SQLS <ul><li>Class SQLS interact with the database through queries sentense. </li></ul>
LIBRARY CLASS <ul><li>“ File skins” contain many template which class View uses.  </li></ul><ul><li>“ File include” may co...
Overview <ul><li>MVC is often seen in web applications, where the view is the actual HTML page, and the controller is the ...
Upcoming SlideShare
Loading in …5
×

MVC Design Pattern, Vietnam Software Outsource

2,688 views

Published on

Your first choice for Software Outsourcing to Vietnam. TuVinhSoft is the leading Vietnam-based software development company providing onsite/software, offshore/software development services to overseas markets. Please prefer to www.tuvinh.com for more details.

Published in: Technology, Business
2 Comments
1 Like
Statistics
Notes
No Downloads
Views
Total views
2,688
On SlideShare
0
From Embeds
0
Number of Embeds
37
Actions
Shares
0
Downloads
145
Comments
2
Likes
1
Embeds 0
No embeds

No notes for slide

MVC Design Pattern, Vietnam Software Outsource

  1. 1. MVC DESIGN PATTERN © 2007 TUVINHSOFT 1a-LT/TL/TUVINHSOFT Authors: Nguyen Huu Dung Version: 1.0 Last Updated: 18-Aug-2008 Instructor: Ta Duc Phuong
  2. 2. MVC PATTERN INTRODUCTION <ul><li>Model-View-Controller ( MVC ) is an architectural pattern used in software engineering. </li></ul><ul><li>The First Pattern was first described in 1979 by Trygve Reenskaug. </li></ul>
  3. 3. INTRODUCE MVC PATTERN <ul><li>Model View Controller MVC is a time tested method of separating the user interface (UI) of an application from its Domain Logic. </li></ul><ul><li>The primary goal of MVC is to isolate UI changes and prevent them from requiring changes to the Domain Logic of the application. </li></ul><ul><li>The primary reason for this division is that the user interface and Domain Logic have different drivers for change and different rates of change. By making this separation, you can change the UI without touching the Domain Logic and vice versa. </li></ul>
  4. 4. INTRODUCE MVC PATTERN <ul><li>MVC PATTERN contains: </li></ul><ul><li>4 main classes : </li></ul><ul><li>- FILE.CONTROLLERS </li></ul><ul><li>- FILE.VIEWS </li></ul><ul><li>- FILE.MODELS </li></ul><ul><li>- FILE.SQLS </li></ul><ul><li>2 library classes </li></ul><ul><li>- FILE.SKINS </li></ul><ul><li>- FILE.INCLUDE </li></ul>
  5. 5. MVC PATTERN
  6. 6. CLASS CONTROLLERS <ul><li>Controller class control models class and views class. </li></ul><ul><li>In MVC, The controller is not a Mediator between the view and the model. The controller does not sit in between the model and the view. Both the controller and the view have equal opportunity to access the model. The controller does not copy data values from the model to the view, although it may place values in the model and tell the view that the model has changed. </li></ul>
  7. 7. CLASS VIEWS <ul><li>Class Views renders the model into a form suitable for interaction, typically a user interface element. Multiple views can exist for a single model for different purposes. </li></ul>
  8. 8. CLASS MODELS <ul><li>The goal of MVC is to make the model independent of the view and controller which together form the user interface of the application. </li></ul><ul><li>The Model class representation of the information that the application operates. </li></ul><ul><li>The Model class control the sqls class. </li></ul>
  9. 9. CLASS SQLS <ul><li>Class SQLS interact with the database through queries sentense. </li></ul>
  10. 10. LIBRARY CLASS <ul><li>“ File skins” contain many template which class View uses. </li></ul><ul><li>“ File include” may contain classes such as js, ajax,..etc. </li></ul>
  11. 11. Overview <ul><li>MVC is often seen in web applications, where the view is the actual HTML page, and the controller is the code that gathers dynamic data and generates the content within the HTML. Finally, the model is represented by the actual content, usually stored in a database or XML files. </li></ul><ul><li>By decoupling models and views, MVC helps to reduce the complexity in architectural design, and to increase flexibility and reuse. </li></ul>

×