Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
URI segment not getting the full segment
Jacinto
November 2012
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 '.'?
Harro
November 2012
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.
Jacinto
November 2012
Is there a way to disable that?
Harro
November 2012
In the config.php, in the routing section, there's a config key called 'strip_extension'. You can set it to false.
Jacinto
November 2012
Awesome thanks so much
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
November 2012
Jacinto
November 2012