PHP Class-The first time you look at the PHP framework, how do you see it? For example I'm looking at: thinkphp frame?

Source: Internet
Author: User
Title, the first time to see the PHP framework, do not know where to look. For example, thinkphp.

1: So many files inside, what should I look at? It's not going to go through every file, is it?

2: What is the order of the watch? Since the documents inside are organized in a certain order, how do you figure out the structure order of a frame?

3: How long does it take to look at a frame?

4: To what extent is the basic grasp of a framework?

5: Can you tell me the difference between the mainstream PHP frameworks? Which is the best choice (multiple options)?

The first contact frame, I hope the great God door to talk about experience

Reply content:

Title, the first time to see the PHP framework, do not know where to look. For example, thinkphp.

1: So many files inside, what should I look at? It's not going to go through every file, is it?

2: What is the order of the watch? Since the documents inside are organized in a certain order, how do you figure out the structure order of a frame?

3: How long does it take to look at a frame?

4: To what extent is the basic grasp of a framework?

5: Can you tell me the difference between the mainstream PHP frameworks? Which is the best choice (multiple options)?

The first contact frame, I hope the great God door to talk about experience

1, first look at TP full version of the Handbook, and then into the official website to see the "tutorial" under the Knowledge
2, read all the knowledge in 1, and then look at a project with a TP framework, according to the function of a one to clarify the idea, read these, you have the basic understanding of the TP how to use the
3, according to your own needs, this has no definite time, mainly depends on what level you want to grasp, see the speed, learning ability, if you see fast, learn fast, and do not require a good grasp, only ask for some simple additions and deletions to change, that soon.
4, you can make a simple project on their own, to achieve some basic functions, you are getting started.
5, based on I do not do PHP development, the current will only TP, but to say which frame good, each has a different, this you can Baidu, a search a lot, specific to your project to choose the right framework for your project, not the best framework for your project.

The above blue baby @blueangel has answered very detailed, then I say about the common framework aspects of things, Symfony is said to be PHP to grasp a certain degree, familiar with the various framework of the great God like to use. General enterprises usually adopt the YII framework, I now use the YII Framework and Laravel Framework, YII framework in the company, Laravel at home with their own, beginners, or first thinkphp the framework of the idea of mastering it, the proposed first grasp the latest version of the thinkphp framework, Then look at the previous framework manuals or code, a comparison of the previous framework design problems what is wrong, the latest version of the thinkphp framework is good, this step is familiar with the framework of design ideas, at least the design of the thinkphp framework. Then after a year such as Advanced YII Framework or laravel framework, or even symfony, all very quickly, to the large enterprise station is usually developed with @laruence YAF Framework, YAF framework I have not used, forget is C or C + + developed PHP bottom frame.

Look at the official documents in the order from the beginning, and then look at some sample project code. I learn codeignitet and symfony all the same.

The first floor will be used, and all of you are very clear about it.
The second layer is to see, the framework of the source code are looked over, the system to run a clear understanding of the process, such as the thinkphp system flow

The third layer is going to write, can rewrite the frame, even write a frame yourself out.

But I wrote a two or three-year thinkphp project, the second layer has not learned really ashamed ...

Start with the portal file, see which files are called by the presentation of a page, understand the framework logic

The next IDE, generally have code to jump, from the entrance file has been seen, first run the process, TP words, will understand the query_string and controller mapping, the time of the route in effect, and then to the controller, the controller is the template ' compile '. It's old, some forget.
Var_dump Dafa that I can't read.
After the running process, there is time to look at the relevant drivers (cache, DB, etc.) in TP, as well as the code of the Model class.
If you superficial understanding, you can go through it in two days.

Look at the document first, go through the process of tracking code, has been chasing the controller, this is a gradual process

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