0

我目前正在使用 ElFinder 2.0 。

我想在主目录中隐藏一些目录。

我怎样才能做到这一点?

我在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

1 回答 1

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
                )
            )
        ),
    )
);
于 2013-08-24T09:28:29.383 回答