TP3.2版本和3.1版本的区别?
phpcn_u233
phpcn_u233 2017-01-07 13:11:00
0
2
1159

为什么3.2版本里面的地址直接用a=index就行了?

phpcn_u233
phpcn_u233

reply all(2)
数据分析师

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支持

搞明白这个几项配置的意思,你的问题也就解决了。


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!