摘要:后台首页渲染小结<?phpnamespace app\admin\controller;use think\Controller;class Index extends Controller{ public function index() { return $this->fetc
后台首页渲染小结
<?php
namespace app\admin\controller;
use think\Controller;
class Index extends Controller
{
public function index()
{
return $this->fetch();
}
public function welcome()
{
return $this->fetch();
}
}
批改老师:天蓬老师批改时间:2019-01-14 10:04:06
老师总结:对于这样的纯渲染,无任何业务逻辑的页面, 用闭包路由, 会更方便些