[eluser]Keat Liang[/eluser]
hi wiredesignz, i been using HMVC for a while. and i discover some minor glitch.
i'm using CI 2.0.1 Reactor, with latest HMVC Code.
when the directory structure like this the load view does not work, said not found
Code:
/application/modules/sample
/application/modules/sample/controllers/sample.php
/application/modules/sample/views/sample/sample_view.php
in controller
Code:
class Sample_Controller extends MX_Controller{
function __construct(){parent::__construct();}
function index()
{
$this->load->view('sample/sample_view'); // this will not work
}
}
i found out when module folder name
Code:
/application/modules/sample
is as same as inside view folder
Code:
/application/modules/sample/views/sample/
when you try to load something from that folder
Code:
$this->load->view('sample/some_view');
it will not work.
sorry for my bad english, i'm trying explain the best i could.
workaround is, just change the folder name inside the view folder (ugly fix)
from this
Code:
/application/modules/sample/views/sample/
to this
Code:
/application/modules/sample/views/sample_/
hope this will same some trouble, if someone encounter this problem too