当前位置:网站首页>What is the difference between TP5 and tp6?

What is the difference between TP5 and tp6?

2022-06-25 08:30:00 Your brother's programming path (love to share)

1 The similarities and differences of directory structure tp5 The core framework is the project root directory thinkphp Next , tp6 yes vendor Of topthink

2 The installation is different ,tp6 Only pass composer Way to install

3 Classes are loaded automatically in different ways tp6 Use composer Method to realize the automatic loading of classes , tp5 composer+ I realized a set of

4 tp6 Used php7 Strict mode

5.tp6 Introduction of Middleware , To compare safety ( Used for filtering and interception )

6.tp6 The multi application pattern distinguishes projects , No confusion

7.tp6 Each part has a corresponding config file . This is better . For example, database module database.php file system filesystem.php modular

原网站

版权声明
本文为[Your brother's programming path (love to share)]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206250720389580.html