ThinkPHP method cannot be accessed
淇鸿
淇鸿 2021-01-18 16:35:22
0
3
1344

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

淇鸿
淇鸿

reply all(2)
曾师傅

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

  • reply class Index extends Controller 要加上extends Controller
    曾师傅 author 2021-01-20 01:32:13
灭绝师太

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template