84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
为什么3.2版本里面的地址直接用a=index就行了?
What is the difference between TP version 3.2 and version 3.1?-PHP Chinese website Q&A-What is the difference between TP version 3.2 and 3.1 version?-PHP Chinese website Q&A
Look around and learn.
区别就是新增了命名空间和把控制器由Action改为了Controler,项目目录也变化了等等。
去tp框架的配置文件里找这几项项配置:
/* 默认设定 */ 'DEFAULT_MODULE' => 'Index', // 默认模块名称 'DEFAULT_ACTION' => 'index', // 默认操作名称
'URL_MODEL' => 1, // URL访问模式,可选参数0、1、2、3,代表以下四种模式: // 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE 模式); 3 (兼容模式) 默认为PATHINFO 模式,提供最好的用 户体验和SEO支持
搞明白这个几项配置的意思,你的问题也就解决了。
What is the difference between TP version 3.2 and version 3.1?-PHP Chinese website Q&A-What is the difference between TP version 3.2 and 3.1 version?-PHP Chinese website Q&A
Look around and learn.
区别就是新增了命名空间和把控制器由Action改为了Controler,项目目录也变化了等等。
去tp框架的配置文件里找这几项项配置:
/* 默认设定 */
'DEFAULT_MODULE' => 'Index', // 默认模块名称
'DEFAULT_ACTION' => 'index', // 默认操作名称
'URL_MODEL' => 1, // URL访问模式,可选参数0、1、2、3,代表以下四种模式:
// 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE 模式); 3 (兼容模式) 默认为PATHINFO 模式,提供最好的用 户体验和SEO支持
搞明白这个几项配置的意思,你的问题也就解决了。