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 ...