PHPSmarty template, MVC framework mode, thinkPHP framework will not be used, so it is very troublesome !!

Source: Internet
Author: User
Beginner: After learning the PHPSmarty template, MVC framework mode, and thinkPHP framework, I feel that it is very troublesome to build a website. I don't know how to deploy the website. how can I use modular design to design the website? thank you for your learning experience !!! Previously, we changed the front-end html to... for beginners:
After learning the PHP Smarty template, MVC framework pattern, and thinkPHP framework, I feel that it is very troublesome to build a website. I don't know how to deploy the website. how can I use modular design to design the website? thank you for your learning experience !!!
Previously, I directly changed the front-end html to PHP, which is easy to understand and use. I don't feel any trouble. I also know that projects will have to be modeled and quickly designed in the future, but I feel that I will not solve the problem in an instant.

Reply content:

Beginners:
After learning the PHP Smarty template, MVC framework pattern, and thinkPHP framework, I feel that it is very troublesome to build a website. I don't know how to deploy the website. how can I use modular design to design the website? thank you for your learning experience !!!
Previously, I directly changed the front-end html to PHP, which is easy to understand and use. I don't feel any trouble. I also know that projects will have to be modeled and quickly designed in the future, but I feel that I will not solve the problem in an instant.

ControllerThe controller focuses on data and logic (backend)
ViewThe template focuses on data presentation and page layout (front-end)
ModelFocus on database interaction (backend)

Separate the three layers.

There are also modular settings in TP. each module can complete some unique functions, such:

  • UserThe module focuses on user registration, logon, password retrieval, data editing, and social login verification,

  • InvoiceThe module focuses on creating, displaying, and changing orders,

  • PaymentThe module focuses on unified collection, order payment, and order refund.

Each module has its ownModel View Controller.

Multiple modules form your own APP, which is your website.

For example, add one of the three modules.ProductThe module can form a basic Mall APP.

Thinkphp documents are detailed and suitable for Chinese users.

You only need to understand PHP syntax, understand MVC in depth, read the sample code, and write the CURD application within 1-2 weeks.

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.