登录

登录界面渲染不出来

namespace app\admin\controller;

use app\admin\common\Base;

use think\Request;

class Login extends Base

{

    public function index()

    //记得渲染的页面文件的时候,不需要加后缀名,这样才能正常加载页面文件

    {

        return $this->fetch('login');

    }

    //验证用户身份

      public function check()

    

    {

        

    }

    //退出登录

       public function save(Request $request)

    

    {

        

    }

    

    

 }


# PHP
兰羽馨 兰羽馨 2069 天前 1264 次浏览

全部回复(7) 我要回复

  • 韦小宝

    韦小宝2018-01-11 17:52:08

    把debug打开看看报什么错,然后把报错复制过来看看

    回复
    0
  • 韦小宝

    韦小宝2018-01-11 17:01:52

    你把debug模式打开了么

    回复
    0
  • 韦小宝

    韦小宝2018-01-11 09:13:22

    报什么错呢?

    回复
    0
  • 兰羽馨

    就是报错说找不到文件

    兰羽馨 · 2018-01-11 16:43:37
    兰羽馨

    你的能访问吗

    兰羽馨 · 2018-01-11 16:43:52
    兰羽馨

    好的,我试试

    兰羽馨 · 2018-01-12 12:25:01
    兰羽馨

    http://localhost/admin.php/login这样子访问就没事,然后http://localhost/admin/login访问就不能出来

    兰羽馨 · 2018-01-12 13:36:08
  • 取消 回复 发送