I'm using Smarty_parser.php and it works well when when I use the parser by itself or if I run the parser then a view call. For example:
public function act() {
@$this->load->library('smarty_parser');
$data = array('Someinfo');
$this->smarty_parser->parse('contentTmpls/act.tpl', $data);
// Load Footer
$this->load->view('Templates/footer');
}
but not if I do:
public function act() {
@$this->load->library('smarty_parser');
$this->load->view('Templates/header');
$data = array('Someinfo');
$this->smarty_parser->parse('contentTmpls/act.tpl', $data);
// Load Footer
$this->load->view('Templates/footer');
}
The header view call seems to disappear and does not output anything. I was wondering if anybody has run into this problem or have seen a fix.