[eluser]Unknown[/eluser]
When I read the code for the CI_Parser class, the main function reads as follows:
Code:
public function parse($template, $data, $return = FALSE)
{
$CI =& get_instance();
$template = $CI->load->view($template, $data, TRUE);
return $this->_parse($template, $data, $return);
}
Why does the template parser first allow PHP output (making the variables available to PHP) and <i>then</i> parse the result, replacing the {simple_style} variables with the passed values?
This logic looks... well, very needlessly complex.