ThinkPHP 路由详解

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a1057962851/article/details/85067383

https://doqrsj.coding.io/index.php/index/index/index?aaa=1

index.php为根目录首页引导文件,其意义在于访问index.php时定位到application目录

https://doqrsj.coding.io/index.php == https://doqrsj.coding.io/application

// 定义应用目录
define('APP_PATH', __DIR__ . '/application/');
// 加载框架引导文件
require __DIR__ . '/thinkphp/start.php';

https://doqrsj.coding.io/index.php/index/ == https://doqrsj.coding.io/application/index AppLication目录下的 index文件夹

https://doqrsj.coding.io/index.php/index/index ==https://doqrsj.coding.io/application/index/index.php index文件夹控制器下面的index.php

https://doqrsj.coding.io/index.php/index/index/index ==https://doqrsj.coding.io/application/index/index.php/index index.php文件内的子程序名称

猜你喜欢

转载自blog.csdn.net/a1057962851/article/details/85067383