You want to pass the parameter with "/" from the template to the Controller method

Source: Internet
Author: User
Want to transfer parameters with "/" from the template to the Controller method, help
http://192.168.1.253/index.php/Home/Index/index4/kind/Creative/media/entertainment like this I want to put creative/media/entertainment as parameters to the next method, but kind can only receive ideas in the back and not receive I think it may be/the problem there is no solution to the end of lazy ....
------Solution--------------------
Parameters replaced with other special symbols/, such as creative-media-Entertainment
------Solution--------------------
What frame are you using? Or did you write it yourself?

index.php echo $_server[' Path_info ']; See if the data is complete

The code you write is $data = explode ('/', trim ($_server[' path_info '));
If the framework is used, it is necessary to conform to the framework
For example TP is agreed to the module name/method name/key/value/key/value ...
  • 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.