Home  >  Q&A  >  body text

The login interface cannot be rendered.

<?php

namespace app\admin\controller;

use app\admin\common\Base;

use think\Request;

class Login extends Base

{

public function index()

//Remember that when rendering the page file, you do not need to add a suffix so that it can be loaded normally Page file

{

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

}

//Verify user identity

public function check()

{

}

}

//Log out

public Function Save (Request $ Request)

{

}

}


兰羽馨兰羽馨2497 days ago1479

reply all(7)I'll reply

  • 韦小宝

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

    Open debug to see what errors are reported, and then copy the errors to see

    reply
    0
  • 韦小宝

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

    Have you turned on debug mode

    reply
    0
  • 韦小宝

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

    What error is reported?

    reply
    0
  • 兰羽馨

    It just reports an error saying the file cannot be found.

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

    Can yours be accessed?

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

    OK, I'll try

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

    Accessing http://localhost/admin.php/login will be fine, but accessing http://localhost/admin/login will not work.

    兰羽馨 · 2018-01-12 13:36:08
  • Cancelreply