PHP技术论坛
标题:
thinkphp5文件规则不同
[打印本页]
作者:
admin
时间:
2016-1-14 14:32
标题:
thinkphp5文件规则不同
最近使用了5.0发现 THINKPHP5.0文件命名规则略有不同
5.0的首字母都是小写 并却不需要带后缀 比如之前UserAction.class.php UserController.class.php 现在可以改写成user.php
同样类名和文件名相同 要写成class user extends Action..Controller
[attach]1[/attach]
欢迎光临 PHP技术论坛 (http://php.hh85.com/)
Powered by Discuz! X3.2