문제

In Yii 1.x you have the CWebLogRoute class to log all your queries and stuff in your browser. Is this option already available for Yii 2.0? I only see the FileTarget, DbTarget and EmailTarget classes in the framework.

도움이 되었습니까?

해결책 2

It's called debugger now in Yii 2.0. To enable it, put this in your configuration:

'preload' => ['debug'],
'modules' => [
    'debug' => 'yii\debug\Module'
],

다른 팁

The correct answer:

return [
    'bootstrap' => ['debug'],
    'modules' => [
        'debug' => 'yii\debug\Module',
        // ...
    ],
];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top