PHP code example of strider2038 / yii2-ajax-debugger

1. Go to this page and download the library: Download strider2038/yii2-ajax-debugger library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

strider2038 / yii2-ajax-debugger example snippets


$config = [
     // this is needed to initialize component on app load
     'bootstrap' => ['ajaxDebugger', ...], 
     'components' => [
         'ajaxDebugger' => [
             'class' => 'strider2038\ajaxdebugger\DebugDetector',
             // conditions for enabling debug mode
             'enabled' => YII_ENV_DEV && !empty($_GET['_debug']),
         ],
         ...
     ],
     ...
];

$ php composer.phar