CodeIgniter Forums
View with Parser not working. - 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: View with Parser not working. (/showthread.php?tid=12681)



View with Parser not working. - El Forum - 10-27-2008

[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