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(); }
public function before() { parent::before(); }