| With the rapid development of modern information technology,Internet has become an indispensable part of our life.Generally,the tool of Internet can become all companies’ own products or means of propaganda of their products.At this era of high-speed development of Web application,speed and quality are the two most important keys to succeed.MVC,Model-View-Controller,has become one of the most popular architecture of Web application development.The problem I am trying to solve in this paper is how to develop a Web application in practice of MVC.More specifically,how to separate an application to these three layers,what’s the advantages of MVC and how could it improves the efficiency of development,these are the main questions to search in this paper.Among those popular programming languages,PHP(Hypertext Preprocessor)is one of the most outstanding languages because of its numerous advantages.Especially its Zend framework,which provides an advanced MVC implementation,is highly favored by lots of start-up companies.Therefore,the approach I adopt to solve the problem is Zend framework of PHP.In order to practice the development of Web application with Zend framework and MVC,I have already started with an existing Web application which is a project of a start-up.This application is called Ecorreo.It is used to manage emails of elected official or public authority.More specifically,it is a Web application for a group of users to manage emails of a common account.After being improved with Zend MVC,the redundancy of codes source will be reduced sharply.And the structure of codes will be simpler to understand.It is beneficial to improvements in the future.In this paper,I will describe about how I improve the application with Zend MVC model and study the advantages in the real development.Ecorreo is also an application with charge.But it is paid by check which is inconvenient for both the clients and company.In addition to improve the architecture with MVC model,I also need to implement a new functionality which is an online payment function.With the function,users can pay it online.To solve this problem,I will apply an interface called Stripe which is a popular payment infrastructure for applications of business.Via Stripe,we can easily create clients,charge their subscription and manage the invoice.Stripe will send events to Ecorreo.With these events,we can update state of account conveniently.In this paper I will describe the implementation of Stripe and management of events by Ecorreo. |