문제

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.

도움이 되었습니까?

해결책

The connector.php file should be in the public folder. Can you access the file in your browser? You can use chrome developer tools or firebug, to see how the script is called (in network/xhr-requests). Is the script found? Or turn on errors and see what errors the connector.php file produces.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top