index控制器中的代码

Original 2019-06-12 12:28:40 172
abstract:<?phpnamespace app\admin\controller;//use think\facade\View;  //view创建静态代理use think\Controller;class Index extends Controller{    public function index()    {&nbs

<?php
namespace app\admin\controller;
//use think\facade\View;  //view创建静态代理
use think\Controller;
class Index extends Controller
{
    public function index()
    {
        return $this->fetch();
    }
    //模板渲染
    public function welcome()
    {
        return $this->fetch();
    }
}

Correcting teacher:查无此人Correction time:2019-06-13 09:14:45
Teacher's summary:完成的不错。多看thinkphp的文档,多练习功能,很快就能上手。继续加油。

Release Notes

Popular Entries