2013-08-24 150 views
0

我目前正在使用ElFinder 2.0。ElFinder +隱藏目錄

我想隱藏主目錄中的某個目錄。

我該怎麼做?

我試着在connector.php文件

,但沒有成功。

這是我的代碼

$opts = array(
    // 'debug' => true, 
    'roots' => array(
     array(
      'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED) 
      'path' => '/home/workioscProject/public_html/codensa/catalogo', // path to files (REQUIRED) 
      'URL' => 'http://76.76.163.155/workioscProject/codensa/catalogo/', // URL to files (REQUIRED) 
      'accessControl' => 'access'    // disable and hide dot starting files (OPTIONAL) 
     ), 
    ), 
    'attributes' => array(
     array(// hide anything else 
      'pattern' => '!^/exportForms!', 
      'hidden' => true 
     ) 
    ) 
); 

// run elFinder 
$connector = new elFinderConnector(new elFinder($opts)); 
$connector->run(); 

我該怎麼辦?

在此先感謝。

回答

4
$opts = array(
    // 'debug' => true, 
    'roots' => array(
     array(
      'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED) 
      'path' => '/home/workioscProject/public_html/codensa/catalogo', // path to files (REQUIRED) 
      'URL' => 'http://76.76.163.155/workioscProject/codensa/catalogo/', // URL to files (REQUIRED) 
      'accessControl' => 'access' ,   // disable and hide dot starting files (OPTIONAL) 
      'attributes' => array(
       array(// hide anything else 
        'pattern' => '!^/exportForms!', 
        'hidden' => true 
       ) 
      ) 
     ), 
    ) 
);