PHP smarty Template, MVC framework mode, thinkphp framework will not work, good trouble!!

Source: Internet
Author: User
Tags learn php smarty template
Beginners:
Learn php smarty template, MVC framework model, thinkphp framework, feel that doing the site is very troublesome ah, with a relatively chaotic. Do not know how to layout the site, how to use modular design you Daniel, please learn the experience!!!
Before all is directly the front-end HTML to PHP, very good understanding and application, do not feel trouble, also know that the project will have to die faster design, but feel so that the moment will not do the solution

Reply content:

Beginners:
Learn php smarty template, MVC framework model, thinkphp framework, feel that doing the site is very troublesome ah, with a relatively chaotic. Do not know how to layout the site, how to use modular design you Daniel, please learn the experience!!!
Before all is directly the front-end HTML to PHP, very good understanding and application, do not feel trouble, also know that the project will have to die faster design, but feel so that the moment will not do the solution

ControllerThe controller is focused on data and logic (back end)
ViewTemplates focus on the presentation of the data and the layout of the page (front end)
ModelFocus on the database interaction (backend)

Divide the three layers first.

In the TP There are also modular settings, each module can complete a unique part of the function, such as:

    • UserModules focus on user registration, login, password retrieval, data editing, social login verification, etc.

    • InvoiceThe module focuses on the creation, presentation, change, etc. of the order.

    • PaymentThe module focuses on unified collections, order payments, order refunds, and more.

Each module has its own Model View Controller .

Multiple modules can form one of their own apps, which is your website.

A Product Basic mall app can be composed of three modules plus one module.

Thinkphp's documentation is more detailed and well suited for Chinese people to read.

As long as you understand the PHP syntax, in-depth understanding of MVC, read patiently, to knock over the sample code, basically 1-2 weeks to write curd application

  • Related Article

    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.