Welcome Guest, Not a member yet? Register   Sign In
View with Parser not working.
#1

[eluser]Lazos[/eluser]
Why is not possible to use views together with parser?

The header.tpl (template) is not loading. What is loading is after the parser.

Code:
<?php
class Header extends Controller {

    function index()
    {
        $data = array(
              'site_menu_title_rot' => array(
                                      array('menu_title' => 'Title 1'),
                                      array('menu_title' => 'Title 2'),
                                      array('menu_title' => 'Title 3')
                                      )
            );
        $this->load->view('header.tpl');
        $this->parser->parse('menu.tpl', $data);
        $this->load->view('footer.tpl');
    }
}
?>


EDIT: Stupid mistake. I accidentally downloaded the 1.6.3 version... Please delete it because this problem was fixed in Version 1.7.0




Theme © iAndrew 2016 - Forum software by © MyBB