tp5基本登录

<?php

namespace app\admin\controller;

use think\Controller;
use think\DB;

class Index extends Controller
{

    // public function _initialize()
    // {
    //     if (!empty(cookie('admin')) && cookie('admin') == 1) {
    //     } else {
    //         $this->redirect('login/index');
    //     }
    // }
    // 登录
    public function login()
    {
        if ($_POST) {
        }


        // 渲染页面
        return $this->fetch();
    }
posted @ 2020-09-17 15:22  梦魇之瞳  阅读(205)  评论(0编辑  收藏  举报