How to load module's view from its controller with a layout?
I've created a module at this location: fuel/modules/module-name/
The module-name directory contains these directories: views, models and controllers
I am trying to load a module view from a controller using this code:
array('location' => '/modules/module-name/views/myClass')
But I get this error:
Unable to load the requested class: myClass
I also tried this:
And got this error:
Unable to locate the file: modules/module-name/views/myClass.php
How can I load myClass.php file from controller? I need to render this view with the main layout (along with header and footer). How can I tell fuel to load this view using the main layout?