[CakePHP4]DebugKitの有効化

LINEで送る
Pocket

# php composer.phar require --dev cakephp/debug_kit "~4.0"
# bin/cake plugin load DebugKit
  • config/bootstrap.php
if (Configure::read('debug')) {
    Configure::write('Cache._cake_model_.duration', '+2 minutes');
    Configure::write('Cache._cake_core_.duration', '+2 minutes');
    // disable router cache during development
    Configure::write('Cache._cake_routes_.duration', '+2 seconds');
    Configure::write('DebugKit.forceEnable', true); #追加
}

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *