What’s the best way to use a URI segment that has a “/” embedded in the value?
for example, i’m passing a port number that looks like “abc1/1”.
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nice question BTW,
There are many ways to solve your problem. but what I prefer is to use:
I assumed the following url for your case:
so you can do this in your controller:
which will output:
so simply you can get your segment then using this “key, value” array.