视图值替换不了

浏览:309 发布日期:2013/11/21 分类:求助交流
输出视图模板,但模板上的值不能替换,请各位帮忙看一下
控制器代码
<?php
class IndexAction extends Action {
public function index(){
$this->name='justin';
$this->display();
}
}

视图代码
<html>
<head>
<title><{$name}></title>
</head>
<body>
<h1>hello,{$name}</h1>
</body>
</html>

输出结果
hello,{$name}

为什么替换不了那个$name的
最佳答案
评论( 相关
后面还有条评论,点击查看>>