输出视图模板,但模板上的值不能替换,请各位帮忙看一下
控制器代码
<?php
class IndexAction extends Action {
public function index(){
$this->name='justin';
$this->display();
}
}
视图代码
<html>
<head>
<ti
tle><{$name}></title>
</head>
<body>
<h1>hello,{$name}</h1>
</body>
</html>
输出结果
hello,{$name}
为什么替换不了那个$name的