如何在 codeigniter 中集成 roxy fileman?

How to integrate roxy fileman in codeigniter?

我在我的 codeigniter 项目中集成了 CKEditor。我已经将 CKEditor 与 Roxy Fileman 集成在一起。我已将 fileman 文件夹放在根文件夹中。但是当我在 CKEditor 中单击 "browse server" 时,它会弹出一个 window 和 URL http://localhost/fileman/index.html?integration=ckeditor&type=image&CKEditor=content&CKEditorFuncNum=1&langCode=en 并且我得到一个错误

找不到对象!

在此服务器上找不到请求的 URL。引用页面上的 link 似乎有误或已过时。请将该错误告知该页面的作者。

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

发生这种情况可能是因为我没有fileman控制器。在正常情况下php,我可以这样集成但是如何将Roxy Fileman 与codeigniter 集成?

由于我的项目位于 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';

必须更改。