Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Elfinder文件管理器_Php_Laravel_Laravel 4_Elfinder - Fatal编程技术网

Php Elfinder文件管理器

Php Elfinder文件管理器,php,laravel,laravel-4,elfinder,Php,Laravel,Laravel 4,Elfinder,我正在使用Laravel4,我想使用,但它不起作用。我首先在本地主机上测试了Elfinder。Elfinder单独工作,但不在laravel: 这是我的母版页中包含的内容。有什么问题吗 {{HTML::style('filemanager1/css/elfinder.min.css')}} {{HTML::script('filemanager1/js/elfinder.min.js')}} <!-- Mac OS X Finder style for jQuery UI smoothne

我正在使用Laravel4,我想使用,但它不起作用。我首先在本地主机上测试了Elfinder。Elfinder单独工作,但不在laravel:

这是我的母版页中包含的内容。有什么问题吗

{{HTML::style('filemanager1/css/elfinder.min.css')}}
{{HTML::script('filemanager1/js/elfinder.min.js')}}
<!-- Mac OS X Finder style for jQuery UI smoothness theme (OPTIONAL) -->
{{HTML::style('filemanager1/css/theme.css')}}


<!-- Normal -->

{{HTML::style('http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css')}}
{{HTML::script('text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js')}}
{{HTML::script('text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js')}}
{{HTML::script('http://code.jquery.com/jquery-1.9.1.js')}}
{{HTML::script('http://code.jquery.com/ui/1.10.3/jquery-ui.js')}}


{{HTML::script('js/bootstrap.js')}}
{{HTML::script('js/expandingbox.js')}}
{{HTML::script('js/jscolor/jscolor.js')}}
{{HTML::style('css/bootstrap.css')}}
{{HTML::style('filemanager1/css/elfinder.min.css')}
{{HTML::script('filemanager1/js/elfinder.min.js')}
{{HTML::style('filemanager1/css/theme.css')}
{{HTML::style('http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css')}}
{{HTML::script('text/javascript“src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js')}}
{{HTML::script('text/javascript“src=”http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js')}}
{{HTML::script('http://code.jquery.com/jquery-1.9.1.js')}}
{{HTML::script('http://code.jquery.com/ui/1.10.3/jquery-ui.js')}}
{{HTML::script('js/bootstrap.js')}
{{HTML::script('js/expandingbox.js')}
{{HTML::script('js/jscolor/jscolor.js')}
{{HTML::style('css/bootstrap.css')}
在我看来,这就是代码

<script type="text/javascript" charset="utf-8">
    $().ready(function() {
        var elf = $('#elfinder').elfinder({
            // lang: 'ru',             // language (OPTIONAL)
            url : 'filemanager1/php/connector.php'  // connector URL (REQUIRED)
        }).elfinder('instance');            
    });
</script>

<!-- Element where elFinder will be created (REQUIRED) -->
<div id="elfinder"></div>

$().ready(函数()){
var elf=$('#elfinder').elfinder({
//lang:'ru',//语言(可选)
url:'filemanager1/php/connector.php'//连接器url(必需)
}).elfinder(“实例”);
});

您在尝试创建额外标记时遇到了一些问题。这是在刀片上不起作用的东西:

{{HTML::script('text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js')}}
这是适用于您的代码。在这里进行了测试

<html>
    {{HTML::style('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/smoothness/jquery-ui.css', array('media' => 'screen'))}}
    {{HTML::script('http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js', array('type' => 'text/javascript'))}}
    {{HTML::script('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js', array('type' => 'text/javascript'))}}
    {{HTML::style('filemanager1/css/elfinder.min.css', array('media' => 'screen'))}}
    {{HTML::script('filemanager1/js/elfinder.min.js', array('type' => 'text/javascript'))}}
    {{HTML::style('filemanager1/css/theme.css', array('media' => 'screen'))}}

    <body>

    Elfinder
    <!-- Element where elFinder will be created (REQUIRED) -->
    <div id="elfinder"></div>

    <script type="text/javascript" charset="utf-8">
        $().ready(function() {
            var elf = $('#elfinder').elfinder({
                // lang: 'ru',             // language (OPTIONAL)
                url : 'filemanager1/php/connector.php'  // connector URL (REQUIRED)
            }).elfinder('instance');            
        });
    </script>

    </body>
</html>

{{HTML::style('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/smoothness/jquery-ui.css,数组('media'=>'screen'))}
{{HTML::script('http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js,数组('type'=>'text/javascript'))}
{{HTML::script('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js,数组('type'=>'text/javascript'))}
{{HTML::style('filemanager1/css/elfinder.min.css',array('media'=>'screen'))}
{{HTML::script('filemanager1/js/elfinder.min.js',array('type'=>'text/javascript'))}
{{HTML::style('filemanager1/css/theme.css',array('media'=>'screen'))}
埃尔芬德
$().ready(函数()){
var elf=$('#elfinder').elfinder({
//lang:'ru',//语言(可选)
url:'filemanager1/php/connector.php'//连接器url(必需)
}).elfinder(“实例”);
});

也许为时已晚,但您可以尝试使用此软件包将elFinder集成到您的laravel应用程序中,包括tinymce


它不起作用。我确实加了一行。但如果没有这条线,它也不起作用。{{HTML::script('',array('type'=>'text/javascript'))}}没有这个脚本,引导下拉按钮似乎无法正常工作。这是另一个问题。您需要jquery1.9.1twitter引导,但Elfinder仅与1.8.0兼容(来自Git repo上的.html)。我在这里用jQuery1.9.1对它进行了测试,但效果并不好。