Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Package access to Uri
  • I'm trying to write a package that needs access to Uri segments. When I use \Uri::segment(1) For example, it runs the segment function but errors saying: ErrorException [ Error ]: Call to a member function get_segment() on a non-object On this line: return \Request::active()->uri->get_segment($segment, $default); Is this because request hasn't been loaded, and how can I get this to run? With thanks in advance
  • Which Fuel version are you using?

Howdy, Stranger!

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

In this Discussion