Compared with Tp3.2, there are a few differences:
(1) Change of directory name:
tp3.2 's directory naming initials are capitalized, for example: application, public, Controller, Model, View, thinkphp, Runtime, Common, Conf, etc.
The tp5.0 directory name letters are lowercase, for example: application, public, controller, model, view, thinkphp, runtime, no common directory, and conf directory.
(2) Change of controller file name:
tp3.2 controller file name, format such as: IndexController.class.php; model naming format such as: IndexModel.class.php.
tp5.0 control before file naming, format such as: index.php; model naming format such as: index.php.
(3) Changes to the namespace:
tp3.2 naming, such as:
Namespace Home\controller
Use Think\controller;
tp5.0 naming, such as:
Namespace App\home\controller.
Use Think\controller;
Note case.
(4) Change of class name:
tp3.2 named, such as: Class Indexcontroller extends Controller {}.
tp5.0 named, such as: Class Index extends Controller {}.
(5) Changes to the default access address:
tp3.2, such as: Address +/index.php/home/index/index
tp5.0, such as: Address +/public/home/index/index.
(6) Change of the method of judging the request
tp3.2, such as: if (is_post) {}
tp5.0, such as: if (Request::instance ()->ispost ()) {}
THINKPHP5 's Introductory study