THINKPHP2.0 to 3.0 What are the improvements _php tutorials

Source: Internet
Author: User

THINKPHP2.0 to 3.0 What are the improvements?


This article mainly describes the THINKPHP2.0 to 3.0 what improvements, the individual summed up 6 small points, the need for friends can refer to the next

1.thinkphp in our entry file notation, it may be the last to add a app::run ();

3.0 is completely unused, you will find otherwise will appear two times call 2.debug we developed in 2.0 we generally write this, in the conf below the config.php

But now the 3.0 way of declaring is different, we use define (' App_debug ', true);

So to affirm

3. In the template allocation template, at 2.0 we will write these $this->display (Skin @ module: method);

But we are in 3.0 is $this->display (skin: module: method);

4. When we call the model, we may be able to $user=d (' user '); This at 2.0 is perfectly fine, but

If you write on 3.0, sorry you write in the usermodel.php model method simply call not come out, this swollen?

$user->d (' user '); Don't ignore the case

5.3.0 Deployment directory and 2.0 is different everybody want to own miserable old look

6.3.0 custom directories or paths are 2.0 different from the manual reference to see, in fact, you can also write your own

Write so much today, continue to update slowly ~ ~

http://www.bkjia.com/PHPjc/975901.html www.bkjia.com true http://www.bkjia.com/PHPjc/975901.html techarticle THINKPHP2.0 to 3.0 What are the improvements this article mainly introduces THINKPHP2.0 to 3.0 what improvements, the individual summed up 6 small points, the need for friends can refer to the 1.thinkphp of our ...

  • Related Article

    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.