$data['something'] = $this->anyfunction(); //data for placeholder {something} $this->parser->parse("my_view", $data);
$this->title = "My current title";
This is some text: {placeholder}Controller:
$this->data['placeholder'] = "foo bar"; $this->render("my_view", $this->data);
{exec_time}
// TODO: There is probably a better way of doing this, but this works for now. $output = \str_replace( array('{exec_time}', '{mem_usage}'), array(round($bm[0], 4), round($bm[1] / pow(1024, 2), 3)), $output );
It looks like you're new here. If you want to get involved, click one of these buttons!