输入模板内容
1.display中没有参数
$this->display();
2.display带参数
$this->display('index2');//本模块文件下的其他方法文件
$this->display('public:error');//调用其他模块下的方法文件。注意:仅仅需要在view下有public文件夹中有error.html即可。不需要一定有public类模快
$this->display('./public/error.html');//.代表当前目录,是index.php入口文件的当前目录
$this->display('./public/error.html','utf-8','text/html');//可以填三个参数
3.fethc方法
$content = $this->fetch('index2');//获取模板文件的数据,已字符串的形式返回
4.show方法
$content = $this->fetch('index2');//获取模板文件的数据,已字符串的形式返回
$content = str_replace('div', 'i', $content);//将$content中的div字样替换成i
$this->show($content.'<b>这里显示加粗字体</b>');