Today, I suddenly found an important problem that seems to be faced every day, but I turned a blind eye to playing with object-oriented games every day. I wrote a method in the class every day, and then I wrote another routing rule, to resolve the address in the address bar!
Today, I suddenly wondered why, after writing these rules in php, I entered an address in the address bar so that he could automatically call the methods in the written classes and classes?
For example, http: // 192.168.0.10/shop/index. php? Act = show_joinin & op = index
Of course, you may say that this is God's mind. you may say that this is determined by the underlying things of php. of course, you may also say that this is not something we should worry about. you may also say that, this may be a matter of scientists. it's none of us. so well, I have played it for you, so you don't have to reply!
If you are interested, go back.
In fact, sometimes we think about it all in a passive way, because we don't understand the truth. after a long time, we think this is an understanding of course, and this is a gift from God, it cannot be violated. this is because religion is born. but the reason why science has been developing is that no one thinks this is understandable. Otherwise, you will be a religious person!
Reply to discussion (solution)
Religion also tells you why things look like this: there is a XX God.
Religion also tells you why things look like this: there is a XX God.
You're just dumb.
In fact, the essence of this question is the relationship between mvc and http. many Cainiao think that they will answer what they want, in fact, it is exposing the ignorant but unhonest nature!
In fact, the mvc pattern is constantly evolving using the http address bar rules,
With the development of the architecture, there is now a REST (Representational State Transfer), a new style that supports HTTP specifications, not much here
For more information, see RESTful Web Services.
Http: // 192.168.0.10/shop/index. php? Act = show_joinin & op = index
Nothing will be completed automatically!
The web server value is responsible for executing index. php.
As for index. php, the passed act = show_joinin & op = index parameter is interpreted as something, and what to do based on these parameters is determined by the code in index. php.
So there is no God, only you!
It is dangerous to believe that you are not a religion.
Check your index. php page, and then check the function of the input parameters.
Religion also tells you why things look like this: there is a XX God.
You're just dumb.
Do not try to bring my IQ to your level, and then defeat me with rich experience.
I also searched for related questions from the landlord, which were quite good ,,,,,,,,,,,,,
I also searched for related questions from the landlord, which were quite good ,,,,,,,,,,,,,
In fact, many dummies only know what people say and believe what they believe. they never think about why. just think about why it is like planning his ancestral graves. this is the nature of Cainiao!