How to understand the Index.php/explore-page/colors/pink-color address bar
Source: Internet
Author: User
How do you understand the address bar shaped like a index.php/explore-page/colors/pink-color?
The link address previously contacted is the form: Index.php?key1=val1&key2=val2
But which of the Index.php/explore-page/colors/pink-color is the parameter name and which is the value?
------Solution--------------------
This is someone else's frame route definition.
It depends on how the route is defined.
------Solution--------------------
Index.php/explore-page/colors/pink-color
This is the URL in path_info format
which
Index.php is the handler
/explore-page/colors/pink-color is the passed parameter
Each section represents a parameter, this is 3.
After the program has obtained the parameter string from $_server[' Path_info '), press/Cut the array
How to interpret the meaning of an array element, a developer will decide
You wrote the procedure, it's up to you.
That is, the parameters are interpreted by location
and Index.php?key1=val1&key2=val2
Parameters are interpreted by name
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