mervick / yii2-adminlte-debug
Yii2 AdminLTE Debug Extension
Installs: 85
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: >=2.0.4
- yiisoft/yii2-debug: >=2.0.5
This package is not auto-updated.
Last update: 2024-12-21 19:16:06 UTC
README
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'], ]; }