CodeIgniter Forums
Skipping URI segment to leave default - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Skipping URI segment to leave default (/thread-74957.html)



Skipping URI segment to leave default - JoellSVK - 11-30-2019

Hello everyone, I would like to ask about skipping URI segment to leave it as default value. I am building API where arguments are filters parameters and some of them I would like to leave sometimes on default like to have URL
Code:
https://localhost/Controller/Method/<blank-to-use-default>/URIsegment2Value

Is it possible? Because now when I leave blank segment it will be skipped but value of the next segment is assigned to the first one. THX Smile