The login interface cannot be rendered.
兰羽馨
兰羽馨 2018-01-10 16:57:29
0
7
1515

<?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)

{

}

}


兰羽馨
兰羽馨

reply all(3)
lge

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

lge

Have you turned on debug mode

lge

What error is reported?

  • reply It just reports an error saying the file cannot be found.
    兰羽馨 author 2018-01-11 16:43:37
  • reply Can yours be accessed?
    兰羽馨 author 2018-01-11 16:43:52
  • reply OK, I'll try
    兰羽馨 author 2018-01-12 12:25:01
  • reply Accessing http://localhost/admin.php/login will be fine, but accessing http://localhost/admin/login will not work.
    兰羽馨 author 2018-01-12 13:36:08
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template