thinkphp 渲染页面

写一个html页面  如下

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<a href="">11111</a>
</body>
</html>

控制器代码如下 

<?php


namespace app\admin\controller;


use app\admin\common\Base;

class Tijiao extends Base
{
public function index(){
    return $this->fetch('tijiao');
}
}

这样可以把页面渲染出来

posted @ 2019-09-05 16:40  volition丶L  阅读(649)  评论(0编辑  收藏  举报