-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Multiple Roots
Gamerz edited this page Aug 24, 2011
·
9 revisions
If you would like more than one root directory like the one in shown in demo, just "mount" another set of driver and name it "LocalFileSystem" on your opts inside connector.php
test
Example:
<?php
$opts = array(
'roots' => array(
array(
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => 'path/to/files/root', // path to files (REQUIRED)
'URL' => 'http://www.localhost.com/files/root/', // URL to files (REQUIRED)
'alias' => 'Root', // The name to replace your actual path name. (OPTIONAL)
'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL)
),
array(
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => 'path/to/files/second_root', // path to files (REQUIRED)
'URL' => 'http://www.localhost.com/files/second_root/', // URL to files (REQUIRED)
'alias' => 'Secondary Root', // The name to replace your actual path name. (OPTIONAL)
'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL)
)
)
);