Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
What is the default controller in subfolder?
  • My URL: http://localhost/admin

    My folder structure
    /fuel
    ..../app
    ......../classes
    ............/controller
    ................/admin
    ..................../index.php


    My controller of /admin
    class Controller_Admin_Index extends \Controller 
    {
       
       
        public function action_index()
        {
           
        }// action_index
       
       
    }

    I got 404 error. FuelPHP can not find default controller? or What is default controller name in subfolder?

    In my routes.php config. the _root_ default controller is index/index
  • HarroHarro
    Accepted Answer
    There is no default controller name, not in any folder. There is only a default action.

    So with that url, it will try to load Controller_Admin, action_index(). Which does not exist, hence the 404.

Howdy, Stranger!

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

In this Discussion