Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Problem with routing
  • I'm trying to setup a controller inside app/classes/controller/admin/categories.php, I have my routes.php set to route 'admin/category' to 'admin/categories', but I'm getting a 404 error. Assuming it's possible to use folders (I'm pretty sure I saw someone do this somewhere already...), what am I missing here?
  • Scott Luther wrote on Monday 30th of May 2011:
    I'm trying to setup a controller inside app/classes/controller/admin/categories.php, I have my routes.php set to route 'admin/category' to 'admin/categories', but I'm getting a 404 error. Assuming it's possible to use folders (I'm pretty sure I saw someone do this somewhere already...), what am I missing here?

    are you extending the admin controller class properly?
    class Controller_Admin_Categories extends Controller_Admin
    

  • Dregond Rahl wrote on Monday 30th of May 2011:
    class Controller_Admin_Categories extends Controller_Admin
    

    Bingo. Thanks! :)

Howdy, Stranger!

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

In this Discussion