search

Home  >  Q&A  >  body text

ThinkPHP method cannot be accessed

Ask the teacher, after downloading Thinkphp, place it in Xiaopi’s www directory and access it through the URL: http://www.dgltp.com/index.php?m=index&c=Index&a=hello. This URL does not have a hello method. Content, do you need to configure anything?

QQ图片20210118163413.jpg

QQ图片20210118163423.jpg

淇鸿淇鸿1435 days ago1361

reply all(3)I'll reply

  • 曾师傅

    曾师傅2021-01-20 01:27:18

    http://www.dgltp***/index.php/index/hello is this okay?

    reply
    0
  • 曾师傅

    class Index extends Controller 要加上extends Controller

    曾师傅 · 2021-01-20 01:32:13
  • 灭绝师太

    灭绝师太2021-01-19 10:14:33

    The rendering template fetch method without parameters will automatically locate the template file according to the default rules. The rules are: current module/default view directory/current controller (lowercase)/current operation (lowercase).html. You can check the default view directory. Whether the hello page exists, if not, the index page will be located

    reply
    0
  • Cancelreply