yii2 framework, debug toolbar is not displayed after opening debug, online environment does not display, but offline can be displayed
as shown below, none online. After the code is uploaded online, only the database configuration is modified, but the rest is not changed
I configured ip, in the configuration web.php and then it didn"t work, as follows
if (YII_ENV_DEV) {
// configuration adjustments for "dev" environment
$config["bootstrap"][] = "debug";
$config["modules"]["debug"] = [
"class" => "yii\debug\Module",
// uncomment the following to add your IP if you are not connecting from localhost.
"allowedIPs" => ["127.0.0.1", "IP"],
];
$config["bootstrap"][] = "gii";
$config["modules"]["gii"] = [
"class" => "yii\gii\Module",
// uncomment the following to add your IP if you are not connecting from localhost.
"allowedIPs" => ["127.0.0.1", "IP"],
];
}