Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using Fuel's Router Standalone.
  • I have a terrible legacy site that I am working with. It uses a really weird routing based on get vars ?module=2&task=1 and so on. Everything is includes, and they are all spread out into different directories.  include, includes, lib, libs...  Argh....

    I know it would be a major pain to change all the links, but I was wondering how difficult it would be to try and re-use fuel's router without installing much else. Eventually I would probably try and get all of core into the project.

    Has anyone tried this, or is it all too dependent on many other classes?


  • It's probably better to have a look at Fuel v2's router component. It does not have any dependencies, see https://github.com/fuelphp/routing. No docs yet, but there's a simple test, and some example in the index.php.
  • I will go take a look.  Thanks.   
  • Looking at the example.  It that using Composer's autoload?
  • Yes, you can just add it to the existing composer.json.

Howdy, Stranger!

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

In this Discussion