To transfer the parameter with "" from the template to the controller method, http: // 192.168.1.253/index. php/Home/Index/index4/kind/idea/media/entertainment. like this, I want to pass the idea/media/entertainment string as a parameter to the following method, but kind can only receive the idea behind it. I don't know if I can solve the/problem ....
Reply to discussion (solution)
Replace/with other special symbols in the parameter, such as originality-media-entertainment
What framework are you using? Or write it by yourself?
Echo $ _ SERVER ['path _ info'] in index. php to check whether the data is complete.
Your own code is $ data = explode ('/', trim ($ _ SERVER ['path _ info']);
If a framework is used, it must comply with the framework's conventions.
For example, TP is defined as the module name/method name/key/value...
Replace/with other special symbols in the parameter, such as originality-media-entertainment
Good way to like one
What framework are you using? Or write it by yourself?
Echo $ _ SERVER ['path _ info'] in index. php to check whether the data is complete.
Your own code is $ data = explode ('/', trim ($ _ SERVER ['path _ info']);
If a framework is used, it must comply with the framework's conventions.
For example, TP is defined as the module name/method name/key/value...
.. Taught 3Q!