mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 574 forks source link

Problem Install #70

Closed tecnologiaterabyte closed 9 years ago

tecnologiaterabyte commented 9 years ago

Hi I followed the wiki installation with composer, but I get this error,

web.php:

<?php

$params = require(DIR . '/params.php');

$config = [ 'id' => 'basic', 'basePath' => dirname(DIR), 'bootstrap' => ['log'], 'modules' => [ 'admin' => [ 'class' => 'mdm\admin\Module', 'layout' => 'left-menu', // avaliable value 'left-menu', 'right-menu' and 'top-menu' 'controllerMap' => [ 'assignment' => [ 'class' => 'mdm\admin\controllers\AssignmentController', 'userClassName' => 'app\models\User', 'idField' => 'user_id' ] ], 'menus' => [ 'assignment' => [ 'label' => 'Grand Access' // change label ], 'route' => null, // disable menu ], ] ], 'components' => [ 'authManager' => [ 'class' => 'yii\rbac\PhpManager', // or use 'yii\rbac\DbManager' ], 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 't-4Zs-0_4inSp4tShggRvRRG7UBx3kzg', ], 'cache' => [ 'class' => 'yii\caching\FileCache', ], 'user' => [ 'identityClass' => 'app\models\User', 'enableAutoLogin' => true, ], 'urlManager' => [ 'showScriptName' => false, 'enablePrettyUrl' => true ],
'errorHandler' => [ 'errorAction' => 'site/error', ], 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', // send all mails to a file by default. You have to set // 'useFileTransport' to false and configure a transport // for the mailer to send real emails. 'useFileTransport' => true, ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning'], ], ], ], 'db' => require(DIR . '/db.php'), ], 'params' => $params, ];

if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\debug\Module'; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', 'allowedIPs' => ['127.0.0.1', '::1', '192.168.1.*'], ]; }

return $config; yii2-admin

mdmunir commented 9 years ago

try this https://github.com/mdmsoft/yii2-admin/issues/67#issuecomment-61253759

tecnologiaterabyte commented 9 years ago

I could review their comments and kept his counsel I install the template and the forward component works fine, large component, you have the documentation of the operation of the components, greetings and excuse my bad english, can close the topic.