CodeIgniter - URL Solution

I am writing a project in CI, and I have a winamp plugin that passes CI values โ€‹โ€‹through a URL (e.g. http: // localhost / class / method / value1 / value2 / value3 / ...) I have to pass 7 values, but the latter three of them will sometimes be empty (for example, http: // localhost / class / method / value1 / value2 / value3 / value4 /// value7 ), but in this case value 7 in CI is assigned as value5, and thatโ€™s not what I want.

My question is: Is there a solution without adding an extra character to the winamp plugin, for example x: value7, and then removing x: and get only the value itself.

+3
source share
1 answer

, , 0 , :

localhost/class/method/value1/value2/empty/value4/empty/value6/value7

, ""

+3

Source: https://habr.com/ru/post/1793436/


All Articles