trippo / ResponsiveFilemanager

Completely Responsive Filemanager with integration for tinyMCE,CKEditor and CLEditor editor
http://responsivefilemanager.com
Other
815 stars 364 forks source link

Integrate File manager [ Codeigniter ] #340

Open sonnety opened 7 years ago

sonnety commented 7 years ago

I am using code codeigniter 3x. I am trying to integrate a file manager - Responsive FileManager 9.11.3 .

I tried many time to integrate but everytime getting error.

Controller file .

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

    class Filemanager extends CI_Controller {

        public function __construct() {
              parent::__construct();
          }

        public function index() {
             $this->load->helper('path');
             $this->load->library('filemanagerx');
             $this->filemanagerx->fmanager();
         }

    }

library file .

if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
   class Filemanagerx {
        public function fmanager() {
           include_once 'filemanager/dialog.php';
    }
}
trippo commented 7 years ago

You must put in a folder the filemanager folder example in root

and link directly like /filemanager/dialog.php... without use class or library

Il giorno 06 mar 2017, alle ore 11:38, sonnety notifications@github.com ha scritto:

I am using code codeigniter 3x. I am trying to integrate a file manager - Responsive FileManager 9.11.3 https://github.com/trippo/ResponsiveFilemanager .

I tried many time to integrate but everytime getting error.

Controller file .

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Filemanager extends CI_Controller {

  public function __construct() {
        parent::__construct();
    }

  public function index() {
       $this->load->helper('path');
       $this->load->library('filemanagerx');
       $this->filemanagerx->fmanager();
     }

}

library file .

if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Filemanagerx { public function fmanager() { include_once 'filemanager/dialog.php'; } } — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trippo/ResponsiveFilemanager/issues/340, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeWESVdRRo9KlsPEIGuABet8kqSg0kcks5ri-ISgaJpZM4MT-qw.