// Example URL: http://localhost/controller/method echo Uri::string(); // returns controller/method
// Example URL: http://localhost/controller/method/param1?abc=123 echo Uri::string(); // returns controller/method/param1?abc=123 echo Uri::string(-1); // returns method/param1?abc=123 echo Uri::string(0, -1); // returns controller/method?abc=123 echo Uri::string(-1, -1); // returns method?abc=123
implode('/', array_slice(Uri::segments(), 1, 3));Though you did just make me realize the Uri::segments() method is missing, or I'm forgetting where it is...
\Request::active()->uri->segments
It looks like you're new here. If you want to get involved, click one of these buttons!