-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File upload not working #6
Comments
this is my config 'app-backend', 'basePath' => dirname(**DIR**), 'controllerNamespace' => 'backend\controllers', 'defaultRoute' => 'login', 'bootstrap' => ['log'], 'modules' => [], 'components' => [ 'user' => [ //'identityClass' => 'common\models\User', 'identityClass' => 'backend\models\AdminUser', 'enableAutoLogin' => true, ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning'], ], ], ], 'errorHandler' => [ 'errorAction' => 'site/error', ], ], 'controllerMap' => [ 'elfinder' => [ 'class' => 'mihaildev\elfinder\Controller', 'access' => ['@'], //глобальный доступ к фаил менеджеру @ - для авторизорованных , ? - для гостей , чтоб открыть всем ['@', '?'] 'disabledCommands' => ['netmount'], //отключение ненужных команд https://github.com/Studio-42/elFinder/wiki/Client-configuration-options#commands 'roots' => [ [ 'baseUrl'=>'@web', 'basePath'=>'@webroot', 'path' => 'files/global', 'name' => 'Global' ], [ 'class' => 'mihaildev\elfinder\UserPath', 'path' => 'files/user_{id}', 'name' => 'My Documents' ], [ 'path' => 'files/some', 'name' => ['category' => 'my','message' => 'Some Name'] //перевод Yii::t($category, $message) ], [ 'path' => 'files/some', 'name' => ['category' => 'my','message' => 'Some Name'], // Yii::t($category, $message) 'access' => ['read' => '*', 'write' => 'UserFilesAccess'] // \* - для всех, иначе проверка доступа в даааном примере все могут видет а редактировать могут пользователи только с правами UserFilesAccess ] ] ] ], 'params' => $params, ]; |
this option 'name' => ['category' => 'my','message' => 'Some Name'] trigger error you must specify the category of translation read article http://www.yiiframework.com/doc-2.0/guide-tutorial-i18n.html#message-translation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bro display this error
missing file Unable to resolve the request "assets/ebddf4cc/js/i18n/elfinder.en.js".
Unable to connect to backend.
Invalid Configuration – yii\base\InvalidConfigException
Unable to locate message source for category 'my'.
The text was updated successfully, but these errors were encountered: