Exemplo n.º 1
0
 public function before()
 {
     parent::before();
     include_once Kohana::find_file('media', 'libs/elfinder/php/elFinderConnector.class');
     include_once Kohana::find_file('media', 'libs/elfinder/php/elFinder.class');
     include_once Kohana::find_file('media', 'libs/elfinder/php/elFinderVolumeDriver.class');
     include_once Kohana::find_file('media', 'libs/elfinder/php/elFinderVolumeLocalFileSystem.class');
     include_once Kohana::find_file('media', 'libs/elfinder/php/elFinderVolumeMySQL.class');
     $opts = array('roots' => Config::get('elfinder', 'volumes'));
     $this->json = NULL;
     // run elFinder
     $connector = new elFinderConnector(new elFinder($opts));
     $connector->run();
 }
Exemplo n.º 2
0
 public function before()
 {
     parent::before();
 }