[eluser]didit[/eluser]
hi need a help again
how to load view from modules A in controller modules B??
for example modules A : templates, modules B : Testing
i used $this->load->view('templates/themes', $this->data); but it not work !
here my code :
Code:
class Testing extends MY_Controller {
function Testing() {
parent::MY_Controller();
$this->load->model('testing_model');
$this->load->model('templates/templates_model');
}
function getall() {
//$data['header'] = $this->templates_model->getHeader();
$this->data['items'] = $this->testing_model->getAll();
$this->data['content'] = $this->load->view('viewemployee',$this->data,true);
// load themes.php from templates modules
$this->load->view('templates/themes', $this->data);
}
}
error msg :
Code:
An Error Was Encountered
Unable to locate the file: templates/themes.php
thanks a lot