Question

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.

Was it helpful?

Solution 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'
],

OTHER TIPS

The correct answer:

return [
    'bootstrap' => ['debug'],
    'modules' => [
        'debug' => 'yii\debug\Module',
        // ...
    ],
];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top