I know that we can use Views.html file in CodeIgniter, now I would like to know if we can use {variavel}
tags directly like in Smarty.
Example:
<body>
<h1>{msg}</h1>
</body>
Are there any native replacement functions? Or do you have to use a coupled framework?
I would like to completely separate PHP from HTML, I already do this with a class of its own, but I wonder if CodeIgniter already does this.
By way of example in substitution:
$data = array();
$CI = & get_instance();
$page = $CI->load->view('login.html', $data, true);
echo str_replace("{teste}", "Hello World", $page);