Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Yii 1.x 中,你有 CWebLogRoute 类来记录你在浏览器中的所有查询和内容。这个选项在 Yii 2.0 中已经可用了吗?我只看到框架中的 FileTarget、DbTarget 和 EmailTarget 类。
正确答案:
return [ 'bootstrap' => ['debug'], 'modules' => [ 'debug' => 'yii\debug\Module', // ... ], ];
现在在 Yii 2.0 中它被称为调试器。要启用它,请将其放入您的配置中:
'preload' => ['debug'], 'modules' => [ 'debug' => 'yii\debug\Module' ],