Skip to content
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

Closed
MohammedAbir opened this issue Nov 22, 2014 · 2 comments
Closed

File upload not working #6

MohammedAbir opened this issue Nov 22, 2014 · 2 comments

Comments

@MohammedAbir
Copy link

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'.

@MohammedAbir
Copy link
Author

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, ];

@MihailDev
Copy link
Owner

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants