Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Uri::segment(n, 'test'); using the $default doesnt work
  • Hello, Like the title says using a default value doesnt work for me.
    <?php echo Uri::segment(1, 'test'); ?>
    
    Thank you
  • You don't mention the version of FuelPHP you're using, but in 1.1/develop it works as advertised.
  • Sorry, v1.0.1 i'm going to test with 1.1
  • strange, I tested both on 1.1-dev and 1.0.1 - both works...
  • Well with 1.0.1 was not working with me, don't know why, but with 1.1 RC1 it works just fine =)

Howdy, Stranger!

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

In this Discussion