Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Uri class weird behaviour
  • hello everyone, Uri::segment is returning empty when there's a number after a colon [:] on the first segment. For example, this will return empty domain.com/pag:2 But this will not domain.com/pag:something It works if it's on the second segment, like this: domain.com/some:thing/pag:2 This is only happening on the server (PRODUCTION), not locally (DEVELOPMENT), although the application is exactly the same. Help!
  • Hello I'm not sure (maybe it's due to cgi php and how it works...)
    but can you try addin the custom route, like: 'controller/method/(.*)' => 'controller/method'. and see if it helps you
  • Ya, that isn't right...should work fine. Can you please open an issue in the tracker here: https://github.com/fuel/core/issues?sort=created&direction=desc&state=open You can basically just copy and paste what you have put here. Thanks,
    Dan
  • Thank you for your replies. This is my basic routing: '_root_' => 'list/index',
    '_404_' => 'base/404', 'product/(:any)' => 'product/index/$1',
    'pages/(:any)' => 'pages/index/$1', '(:any)' => 'list/index/$1' / Thank you Dan, I just opened the issue on Github.

Howdy, Stranger!

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

In this Discussion