[eluser]jordanarseno[/eluser]
Has anybody ever had issues with the order that views are displayed when using:
Code:
$this->parser->parse()
?
I have a template that I pass all of my views to in order to achieve header/content/footer.
Using this:
Code:
...
1. $this->load->view("includes/header.php", $main_content)
2. $this->parser->parse($main_content, $parser);
3. $this->load->view("includes/footer.php", $main_content)
...
Actually renders on the page as:
2. parser
1. header
3. footer
Is this how the parser class works? Is it designed to render as the very first view, or is there a way to embed it between views?
Thanks!