: Is there an article about ThinkPHP's business model and controller instance?

Source: Internet
Author: User
Is there an article about ThinkPHP's business model and controller instance ?? For example, I searched a lot on the Internet, but they were all one-sided. the official documents seem to have no source code, I cannot figure out the relationship between the business model and the controller, or even I don't know how to write the business model... very depressing. can I provide some source code instances ?? To be complete, at least one complete class is required. how does the controller call the business model? I know for help: Is there an article about ThinkPHP's business model and controller instance ??
For example, I searched a lot on the Internet, but they were all one-sided. the official documents seem to have no source code, I cannot figure out the relationship between the business model and the controller, or even I don't know how to write the business model... very depressing. can I provide some source code instances ?? To be complete, at least one complete class is required. how does the controller call the business model? I know there is a M () and D (), but it seems that it cannot be called .....
In learning TP, thank you ....
It seems that there is very little information about the business model on the Internet, all of which is an excerpt from the official documentation... very depressing.

------ Solution --------------------
Does he have Examples?
------ Solution --------------------
Why can't M and D be called? This is the most basic usage
Is M ("user ").
------ Solution --------------------
Go to the smarty Chinese manual. it's comprehensive!

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.