[eluser]dmitrybelyakov[/eluser]
Ok that's correct but i think there's still a strange behavior of modules::run method.
Here's what you asked for: My
default module is admin. So the folder structure is like this:
[pre]
/modules/admin/
/controllers/admin.php
/views/container.php
/views/html-header.php
/views/html-footer.php
/modules/dashboard/
/controllers/dashboard.php
/views/dashboard.php
[/pre]
In my admin module i have a function that collects all the data and outputs it to
container.php view:
Code:
function runModule($module_path){
$data['content']=modules::run($module_path); //comment this line to work
$this->load->view('container', $data);
}
And the /admin/views/container.php looks like this:
Code:
$this->load->view("html-header");
echo $content;
$this->load->view("html-footer");
This does not work as it should and i am getting a CI error:
An Error Was Encountered
Unable to locate the requested file: admin/views/html-header.php