Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
URI separator constant
  • My understanding is that the 'DS' constant is used for a directory separator in a file path.
    It is an alias for PHP's 'DIRECTORY_SEPARATOR' constant. Is there an equivalent URI separator?
    A nice tight constant such as 'DS' really makes the code easier to read.
  • URI are standard. You can use "/" everytime. ;-)
  • You could always set your own...
        define('US', '/'); // URI Separator 
    
  • You may be overthinking this a tiny bit... ;)
  • Thanks for finding me guys, I sometimes get lost in the woods. :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion