$widget = \Request::factory('module/controller/action/param', false)->execute();
\Fuel::add_module('modulename');
\Fuel::add_path(APPPATH.'modules/modulename');
\Fuel::add_path(APPPATH.'modules/modulename', true);
$view \View::factory('path/to/view');
$view = Request::factory('modulename/controller/method')->execute();
namespace Modulename;
class Controller_Controller {
public function method()
{
return \View::factory('path/to/view');
}
}
Slowly getting my head around Fuel.
The more I use it the more obvious and simple things become
// Load a view from APPPATH/modules/test/views/some/view.php
$view = \View::factory('test::some/view');
It looks like you're new here. If you want to get involved, click one of these buttons!