Home  >  Q&A  >  body text

TP3.2版本和3.1版本的区别?

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

phpcn_u233phpcn_u2332776 days ago1128

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:49:55

    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.

    reply
    0
  • 阿神

    阿神2017-01-07 13:11:24

    区别就是新增了命名空间和把控制器由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支持

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


    reply
    1
  • Cancelreply