ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
装think模板(think-template此时会一同安装) ``` composer require topthink/think-view ``` 新建控制器app\admin\controller\Index.php ``` namespace app\admin\controller; use app\BaseController; use think\facade\View; class Index extends BaseController{ public function index(){ return View::fetch(); } } ``` config\view.php文件加上 ``` 'tpl_replace_string'=>[ '{STATIC}'=> '/static', // 必须大写 ], ``` 新建模板文件app\admin\view\index\index.html 然后在app\admin\view\index\index.html路径中加上替换变量`{STATIC}` ``` <link rel="stylesheet" href="{STATIC}/admin/css/login.css"> ``` 访问http://www.tp6.com/index.php/admin/index/index >[danger] 由于6.0 tp模板已被单独摘出,模板详情参考[ThinkTemplate开发手册](https://www.kancloud.cn/manual/think-template/1286403)