网站后台模板渲染

Original 2019-03-18 11:54:25 192
abstract:<?php namespace app\admin\controller; use think\Controller; use think\Request; class Index extends Controller {     /**     
<?php

namespace app\admin\controller;

use think\Controller;
use think\Request;

class Index extends Controller
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        
        return $this->fetch();
    }

    /**
    后台主页内容
    */
    public function welcome(){
        return $this->fetch();
    }
}

显示效果如下:

QQ截图20190318115129.jpg

Correcting teacher:天蓬老师Correction time:2019-03-19 09:25:07
Teacher's summary:首页,就是 一个普通的页面, 但是这个页面比较特殊, 是其它页面的入口, 具有索引作用,所以一般叫: index

Release Notes

Popular Entries