mervick/yii2-adminlte-debug

Yii2 AdminLTE Debug Extension

v1.0.0 2015-11-01 18:21 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:12:02 UTC


README

Analytics

Modified yiisoft/yii2-debug for mervick/yii2-adminlte.

Installation

This package required by mervick/yii2-adminlte.
If you want install this manually, open terminal and run:

php composer.phar require "mervick/yii2-adminlte-debug" "*"

or add to composer.json

"require": {
    "mervick/yii2-adminlte-debug": "*"
}

Usage

In your config file (it's maybe config/main.php or config/main-local.php) add the following lines:

if (!YII_ENV_TEST) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'mervick\adminlte\debug\Module',
        'controllerNamespace' => 'mervick\adminlte\debug\controllers',
        'allowedIPs' => ['*'],   // for all ips with 'dev' role
        'allowedRoles' => ['dev'],
    ];
}