Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
URI segment not getting the full segment
  • I have a url with the following domain.com/user/roger.grevies.2 (username from fb) and when I use Uri::segment(2) it returns back just "roger.grevies". why does it get rid of everything after the second '.'?
  • It sees the part after the dot as the extension, and since extensions aren't part of the URI, they get stripped.

    As a workaround you could glue Input::extension() to the back of the last segment using a dot as separator.
  • Is there a way to disable that?
  • In the config.php, in the routing section, there's a config key called 'strip_extension'. You can set it to false.
  • Awesome thanks so much

Howdy, Stranger!

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

In this Discussion