如图,我想访问applicationindexcontrollerIndex.php中的自定义hello()方法,url该怎么写?
主机名/index.php/Index/index/hello
localhost/index.php/index/index/hello
如果你没有定义路由、修改入口文件位置以及写hatcess文件,应该是 主机名/项目目录/public/index.php/Index/index/hello
2 回答1.3k 阅读✓ 已解决
2 回答3.1k 阅读
1 回答967 阅读✓ 已解决
2 回答839 阅读✓ 已解决
1 回答1k 阅读✓ 已解决
2 回答895 阅读
1 回答883 阅读
2 回答4k 阅读✓ 已解决
2 回答4.2k 阅读✓ 已解决
1 回答3.4k 阅读✓ 已解决
3 回答6k 阅读✓ 已解决
2 回答4.5k 阅读
主机名/index.php/Index/index/hello