Write MVC on your own or use the ready-made version?

Source: Internet
Author: User
Write MVC on your own or use the ready-made version? A new project needs to be written in object-oriented mode.
I want to write it in MVC mode. I don't know if it's hard to write an MVC? Is it better to use a ready-made framework?
Because process-oriented code is used all the time, the object only understands and has never done any project.
I hope you can give me some comments.


Reply to discussion (solution)

Make sure that mvc is used only for large projects. thinkphp is the most widely used.

You don't know what the mvc pattern is. how can you write it? You can look for a simple framework to see if you can write it. if you can't, use someone else's.

MVC is a design pattern, or design idea.
MVC is summarized from a large number of programming practices.
Whether it is object-oriented or process-oriented, you can see the shadow of MVC.
Because you intentionally or unintentionally write the code into three parts: Model, interface, and control, MVC can appear.

MVC is a design pattern used to build the project structure.

MVC is strictly called a design model. The use of the MVC model for the project is positive. Use smarty.

Let's take a look at the framework source code .. See how to implement MVC...
Face object programming is not very difficult .. Be sure ..

If the project is on schedule, use the open-source framework directly. Thinkphp, yii, ci

Do not reinvent the wheel unless you have the necessary reasons.

I have no project experience, and I am not a large project. We recommend that you use smarty for the building group. In fact, mvc is the controller control page display, view (html) display page, model control database addition, deletion, modification, and query. It is also mvc that stores different tasks in different folders and continuously inherits and calls them.

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.