THINKPHP2.0 to 3.0. THINKPHP2.0 to 3.0 what are the improvements in this article mainly introduces THINKPHP2.0 to 3.0 what are the improvements, I personally summarized 6 small points, need friends can refer to the next 1. thinkphp's improvements from THINKPHP2.0 to 3.0
This article mainly introduces the improvements made by THINKPHP2.0 to 3.0. I personally summarized the improvements in THINKPHP2.0 to. For more information, see
1. in thinkphp, we may add an app: run ();
3.0 won't be used at all. you will find that otherwise there will be two calls. 2. we usually write this in 2.0 during debugging. in config. php under conf
However, the declaration method of the current 3.0 statement is different. We use define ('app _ debug', true );
In this way, declare
3. when the template is assigned, we will write the $ this-> display (skin @ Module: Method) at 2.0 );
But in 3.0, $ this-> display (skin: Module: method );
4. when we call the model, we may like this $ user = D ('user'); this is okay in 2.0,
If you write it on 3.0, I'm sorry you cannot call the UserModel. php model method at all. is this swollen?
$ User-> D ('user'); case-insensitive
The 5.3.0 deployment directory is different from the 2.0 deployment directory.
6.3.0 user-defined directories or paths are different from those in section 2.0. you can refer to the manual for reference.
Write so much today, and continue to update it slowly ~~
This article introduces THINKPHP2.0 to 3.0. I personally summarized the improvements in THINKPHP2.0 to. For more information, see section 1. thinkphp...