0

I am using laravel on a Mcbook with mamp as the testing environment.

I have setup elrte and elfinder using this code:

var dialog;
    $('.elrte').elrte({
        toolbar      : 'maxi',
        fmOpen: function(callback) {
            if (!dialog) {
                // create new elFinder
                dialog = $('<div />').dialogelfinder({
                    url: '/mycms-laravel/elfinder/php/connector.php',
                    commandsOptions: {
                        getfile: {
                            oncomplete : 'close' // close/hide elFinder
                        }
                    },
                    getFileCallback: callback // pass callback to file manager
                });
            } else {
                // reopen elFinder
                dialog.dialogelfinder('open')
            }
        }
    });

But get this message:

Invalid backend configuration. Readable volumes not available.

Have I not setup the config file? What should it be for a laravel environment.

4

1 回答 1

0

connector.php 文件应位于公共文件夹中。您可以在浏览器中访问该文件吗?您可以使用 chrome 开发人员工具或 firebug 来查看脚本的调用方式(在 network/xhr-requests 中)。找到脚本了吗?或者打开错误,看看 connector.php 文件产生了什么错误。

于 2013-01-27T12:24:44.590 回答