In CI, we all know that you can assign the view into a variable like:
$a = $this->load->view('theview',$data,true);
Is this possible to parser function like this:
$a = $this->parser->parse('thetemplate',$data,true);
In CI, we all know that you can assign the view into a variable like:
$a = $this->load->view('theview',$data,true);
Is this possible to parser function like this:
$a = $this->parser->parse('thetemplate',$data,true);
yea, this works:
$string = $this->parser->parse('thetemplate', $data, TRUE);
the TRUE
at end avoids it to be sent to the output class
See: CI Parser