Welcome Guest, Not a member yet? Register   Sign In
Error loading partial view
#1

[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 ?




Theme © iAndrew 2016 - Forum software by © MyBB