1.入口文件地址
TP3: http://localhost/index.php/Index/Index/index
TP5: http://localhost/public/index.php/Index/index/test
2.支持php版本
TP3: PHP5.3+
TP5: PHP5.4+
3.命名规范
TP3: Indexcontroller.class.php
TP5: index.php
4:系统函数
TP3: I U D M S
TP5: input {:url} Model
5.API接口支持
6.渲染模板
TP3: $this->display()
TP5: return $this->fetch()
7.think\Db;
think\Request;
博主网址:www.imdam.com it博客之家
本文对比了ThinkPHP3与ThinkPHP5两个版本的主要区别,包括入口文件地址、支持的PHP版本、命名规范、系统函数、API接口支持、渲染模板方式及数据库操作等方面。
689

被折叠的 条评论
为什么被折叠?



