CodeIgniter Forums
Error loading partial view - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Error loading partial view (/showthread.php?tid=59762)



Error loading partial view - El Forum - 11-14-2013

[eluser]Unknown[/eluser]
Hi there,

I'm using CI-Smarty and HMVC-modular-extensions-HMVC, but when I try to do something like:

Code:
class Page_Main extends MX_Controller {

public function index() {

    $data['title'] = 'Main Page';
    $data['main'] = Modules::run('news');
    $data['side1'] = Modules::run('categories');
    $data['side2'] = Modules::run('contact');

    $this->parser->parse('page_main.tpl', $data);
}
}

I get an error because the three .tpl from the Modules I'm instantiating are not found ... is there an easy way to solve this ?