index控制器中的代码

原创 2019-01-15 11:06:35 233
摘要:<?phpnamespace app\admin\controller;use think\Controller;class Index extends Controller{    public function index()    {       return $this->fetch(); 

<?php

namespace app\admin\controller;

use think\Controller;

class Index extends Controller

{

    public function index()

    {

       return $this->fetch();

    }

    public function welcome()

    {

    return $this->fetch();

    }

    

}

<?php 

namespace app\admin\controller;

use think\Controller;


class User extends Controller

{

public function index()

{

//渲染管理员界面\

return $this->fetch();

}

}


批改老师:韦小宝批改时间:2019-01-15 13:09:29
老师总结:写的还很不错 这只是简单的渲染方法 没事多研究研究 多看看tp5.1的手册

发布手记

热门词条