如何在codeigniter中集成roxy fileman?

时间:2015-08-02 19:49:11

标签: codeigniter ckeditor roxy-fileman

我在我的codeigniter项目中集成了CKEditor。我已经将CKEditor与Roxy Fileman集成在一起。我已将fileman文件夹放在根文件夹中。但是当我点击CKEditor中的“浏览服务器”时,它弹出一个URL为http://localhost/fileman/index.html?integration=ckeditor&type=image&CKEditor=content&CKEditorFuncNum=1&langCode=en的窗口,我收到错误

找不到对象!

在此服务器上找不到请求的URL。引用页面上的链接似乎是错误的或过时的。请告知该页面的作者有关错误的信息。

如果您认为这是服务器错误,请与网站管理员联系。 错误404 本地主机 Apache / 2.4.10(Unix)OpenSSL / 1.0.1j PHP / 5.6.3 mod_perl / 2.0.8-dev Perl / v5.16.3

这可能是因为我没有文件控制器。在普通的php中,我可以像这样集成但是如何将Roxy Fileman与codeigniter集成?

1 个答案:

答案 0 :(得分:1)

由于我的项目位于htdocs的子文件夹中,我不得不从

更改代码



 var roxyFileman = '/fileman/index.html?integration=ckeditor';
 $(function() {
   CKEDITOR.replace('content', {
     filebrowserBrowseUrl: roxyFileman,
     filebrowserImageBrowseUrl: roxyFileman + '&type=image',
     removeDialogTabs: 'link:upload;image:upload'
   });
 });






 var roxyFileman = '/projectName/fileman/index.html?integration=ckeditor';
 $(function() {
   CKEDITOR.replace('content', {
     filebrowserBrowseUrl: roxyFileman,
     filebrowserImageBrowseUrl: roxyFileman + '&type=image',
     removeDialogTabs: 'link:upload;image:upload'
   });
 });




通知



var roxyFileman = '/projectName/fileman/index.html?integration=ckeditor';




必须改变。

相关问题