Home  >  Q&A  >  body text

When I use the module controller method name to access it, it shows 404

<?php
namespace app\index\controller;
use app\index\controller\Base;

class User extends Base
{
//Login interface Rendering
public function login()
{
return $this->view->fetch();
}
//Login verification
public function checkLogin()
{
}
//Log out
public function logout()
{
}
}
Access address: http://www.65481.cn/ index/user/login

大司命大司命1860 days ago1138

reply all(1)I'll reply

  • 林瑞程

    林瑞程2019-08-22 14:02:58

    Refer to the URL access chapter of the development manual. Route rewrite rules

    reply
    0
  • Cancelreply