Improvements in THINKPHP2.0 to 3.0 _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.