ezze / ezze-elfinder

YII framework's extension used to integrate ElFinder file manager.
11 stars 5 forks source link

Getting {"error":["errUnknownCmd"]} error #6

Closed sajeeshe closed 9 years ago

sajeeshe commented 9 years ago

Hi, In my CI I have congigured every thing like this

https://github.com/Studio-42/elFinder/wiki/Integration-with-Codeigniter-2

Now the issue is when the page load I get Unknown Command Error. I have no idea how to fix it. Path is correct and every thing is correct.

Here is the controller

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

class Filemanager extends CI_Controller {

function __construct()
{

    parent::__construct();

    $this->load->library('auth');

}

public function init(){

     $this->load->helper('path');
      $opts = array(
         'debug' => true, 
        'roots' => array(
          array( 
            'driver' => 'LocalFileSystem', 
            'path'   => set_realpath('user_files'), 
            'URL'    =>site_url('user_files/')
            // more elFinder options here
          ) 
        )
      );

      $this->load->library('elfinder_lib', $opts);

}

public function index(){

    //$this->layout = "";
    $this->load->view("files");

}

}

ezze commented 9 years ago

This is the extension for Yii framework but not for CodeIgniter that's why I can't help you with your issue.

hoatrai commented 7 years ago

Hi you! You have find error yet! I'm getting this error