MVC Volleyball Scoring (iii.)--outline design of the structure

Source: Internet
Author: User

This program is mainly based on the MVC4 framework, so that the application input, processing and output mandatory separation, making program maintainability, extensible

Flexibility and encapsulation, MVC applications are divided into three core components: Model, View, Controller.

Architectural Fundamentals:

MVC is a design pattern that makes it mandatory to separate the input, processing, and output of an application. Using an MVC application is divided into three core parts: model, view, controller. Each of them handles their own tasks.

The advantage of the MVC pattern is that it can handle more demand changes without causing confusion in the program structure.

view  
The span style= "font-size:18px" view is the interface that the user sees and interacts with. For older Web applications, views are an interface of HTML elements, and in modern Web applications, HTML still plays an important role in the view, but new technologies are emerging, including Macromedia Flash and Image xhtml,xml/xsl , WML, and some other identity languages and Web services.
How to handle an application's interface becomes increasingly challenging. One big benefit of MVC is that it can handle many different views of your application. There is really no real processing happening in the view, whether the data is stored online or an employee list, as a view, it is simply a way to output data and allow the user to manipulate it.  

model  

controller  

Division of Responsibilities:

1. The view renders the user interaction interface.

playview--function: Enter the name of the team.

addview--function: The scoring page, inserting data into the database.

indexview--function: Displays the details page.

EditView-function: Modify the data information and coexist to the database.

2. Model provides data for multiple views

Volleyball

Total

3. The controller handles user interaction

volleyballcontroller--Main method: Return "Indexview", return "Playview", return "AddView", return "EditView".

totalcontroller--Main method: Return "Indexview", Return "EditView".

MVC Volleyball Scoring (iii.)--outline design of the structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.