Tag Archives: Thinkphp framework

Tp6 Cannot enable error [How to Solve]

tp6 open error, you need to copy the root directory of .example.env, save it as .env, then modify the header to APP_DEBUG=true, and then directory config/app.php modify ‘show_error_msg’ => fales.

If the pdo still reports an error after starting php.ini again, log out the .env file

[DATABASE]
TYPE=mysql
HOSTNAME=host.docker.internal
DATABASE=easyadmin
USERNAME=root
PASSWORD=root
HOSTPORT=3306
CHARSET=utf8
DEBUG=true
PREFIX=ea_

 

PHP Error

I encountered this error while using the thinPHP framework is_array function today. You cannot use the return value of a function as an argument

Baidu solution is thinkPHP bug, more reliable said that the PHP version of the problem, 5.4 not, 5.6 is OK, but I use the version of 5.6.

The solution, is_array,empty, is to pass as many variables as possible.