abstract:<?phpnamespace app\admin\controller;//引入控制器use think\Controller;//继承控制器class Index extends Controller{ //渲染index模板 public function index() { &nbs
<?php
namespace app\admin\controller;
//引入控制器
use think\Controller;
//继承控制器
class Index extends Controller
{
//渲染index模板
public function index()
{
return $this->fetch();
}
//渲染welcome模板
public function welcome()
{
return $this->fetch();
}
}
Correcting teacher:天蓬老师Correction time:2019-04-27 17:38:12
Teacher's summary:public function welcome()
{
return $this->fetch();
}
因为后台用了内联框架, 所以要单独渲染一下