thinkphp Data Sheet and controller and model what's the relationship Ah, just started to learn, a little messy

Source: Internet
Author: User
thinkphp Data Sheet and controller and model what's the relationship Ah, just started to learn, a little messy


Reply to discussion (solution)

Following the quick Start tutorial on the official homepage, the concept is almost clear.

A bit messy at first it doesn't matter, the tutorial is finished and then summed up is clear.

You're all messed up right now, and if people talk to you about MVC, you're confused, aren't you?

In thinkphp
The data table is mapped to Model
No relationship to the controller

A model represents an instance of a table, and the controller deals with the database through model, which belongs to the Process control role

  • 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.