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();
}
因?yàn)楹笈_用了內(nèi)聯(lián)框架, 所以要單獨(dú)渲染一下