About the thinkphp framework of learning?? Seeking the Great God's weapon

Source: Internet
Author: User
Framework of learning methods?? Seniors, the juniors have just begun to learn the use of thinkphp framework, where to start!! Seek the Elder's weapon!!!

Reply content:

Framework of learning methods?? Seniors, the juniors have just begun to learn the use of thinkphp framework, where to start!! Seek the Elder's weapon!!!

The manual is a must-see, but the thinkphp manual is messy and the classification is very unclear. What you are looking for often cannot be found.

I think first of all to understand the framework of the flow of operation. This thinkphp do a very bad job, there is no flowchart for you. Give you a big paragraph of the text to see.

Knowing the process of running the system, there is a ballpark in the mind.

Then there is the model, template, controller, routing this series of frameworks standard learning, as for the way of learning, is to follow the example.

Thinkphp is relatively simple and easy to get started with. If you have a solid base of PHP, the object-oriented programming is familiar, learning will not be laborious, the most feared is that you do not have a solid PHP foundation, only to listen to MVC, it is urgent to use the framework. The result is that the code written does not use any of the advantages of the framework. That's why we lost the frame of use.

The first step, according to the official example, is to write a Hello world first.
The second step, learn m,d,a,r and other common methods.
Step three, start learning templates.
Fourth step, learn curd operation, that is, database operation.

Well, often above four steps, you have become a basic qualified thinkphper.

If you want to learn thinkphp better, you need to go to the official and various forums to exchange, but there are some pits, I will record to phpshiti.com above, as my valuable experience and share.

If you learn how to use it, please look directly

Official documents

If you want to learn how the framework is designed, please follow the source code from the framework entry file

You can look at his manual step-by-step. The Handbook of TP is written in quite detailed. Follow the manual and go through it. You can write a simple OA system and the like to practice your hand.

Learning Laravel

1 Floor said good time you can follow this to the official website manual carefully several times what I want to say is that if you do not have a lot of time to look carefully, you can probably go through the manual know what is there and then use the change to learn convenient memory also do not delay time no need to tangle to how to carry out of course everyone is beginning to have such a

Read the manual.

Key to see:

model数据库控制器模板标签

The answer is adopted ...

Can find a TP framework system to see how others write. So learn and reference!

It is best to understand the idea of MVC, I did not understand MVC when I first learned, so has been very chaotic.
After that is to follow the manual, you can debug some of the following breakpoints to see how he is running,
Then there is the ordinary study (this can see the other answer-_-)

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