My personal views on the PHP Framework do not need to be specifically promoted.

Source: Internet
Author: User
My personal views on the PHP Framework do not need to be specifically promoted. The framework is complicated and mysterious,
But in fact many frameworks are not in the routing + class library mode?
For example, there is a file index. php
Run http://www.xx.com/index.php
And
Run http://www.xx.com/index.php/1/2/3/4/5
Are the results different?
Answer: No.

Okay, if we take the 1/2/3/4/5 next to it,
For example, 1 indicates the class name.
2 Representative methods
Let's try new. 1,
Isn't it just calling the class 1 file?

Remove index. php and then change it
Http://www.xx.com/1/2/3/4/5

Now, the framework is created.
With a normal mind, do not tangle with how to build a framework. development thinking is the most important thing,
All the way to Rome.


Reply to discussion (solution)

Framework is nothing more than a tool for developing applications

Just like a hammer is used for hitting
If you still need to start a DingTalk, you should choose the one with a DingTalk.
If you want to create an iron bowl, you have to choose a ball head.
No matter which one you choose, the attributes you typed won't change.
Of course, you don't need a hammer, and it works to pick up bricks.

The landlord said it was good. The moderator said it was correct. it was mainly about basic skills, and the framework was a tool.

Yes !!!

Have your own methods and ideas, sum up, and make the right one ..

I have never used a framework, so I will learn how to use it .. Haha ..

I agree with the comments of moderators and landlords. The framework has to consider many other issues. The author introduces the framework work process from the perspective of framework design and calling, as a framework user, you can choose from code reuse, maintenance, scalability, performance improvement, stability, and learning costs.

Role of an individual's human framework
1. code organization
2. code reuse

No ,,,,,

You just said what it is, but why is it designed like this? Why use routing? What are the benefits and disadvantages of a single portal? How can we enhance the scalability of the framework?

You just said what it is, but why is it designed like this? Why use routing? What are the benefits and disadvantages of a single portal? How can we enhance the scalability of the framework?


Is it easy to control a single portal?
Others

? The main analysis is very reasonable. it must be Daniel.

People who work in php always like to say that php is simple and simple, but they do not want to use architectures or models. I don't know how to use M, C, S, P like thinkphp, I as the function name is not what they call simple.

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.