Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Can not setup Modules view to work
  • I have just start fuelphp few days ago and want to create modules named "Hello"
    I put its view inside it but can not get it to work
    the output says "Fuel\Core\FuelException [ Error ]: The requested view could not be found: hello/index"

    what wrong with my modules?

    app/modules/hello/classes/controller/hello.php
    namespace Hello;
    class Controller_Hello extends \Controller
    {
        public function action_index()
        {
            return \Response::forge(\View::forge('hello/index'));
        }
    }

    app/config/config.php
    return array(
        'module_paths' => array(
            APPPATH.'modules'.DS        // path to application modules
        ),
    );

    app/config/routes.php
    return array(
        '_root_'  => 'hello/index',  // The default route
        '_404_'   => 'welcome/404',    // The main 404 route
    );


    here is the module controller and view if anyone want to check
    http://www.mediafire.com/?srnvcnoldc860cq
  • Answer to my question
    it is because I name the "views" as "view" so it can not find

Howdy, Stranger!

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

In this Discussion

  • Lee January 2013