Skip to content

Multiple Roots

troex edited this page Mar 5, 2012 · 9 revisions

If you would like to add more than one root directory like the one shown in demo, just "mount" another set of driver and name it LocalFileSystem on your opts inside connector.php



$opts = array(
    'roots' => array(
            'driver'        => 'LocalFileSystem',           // driver for accessing file system (REQUIRED)
            'path'          => 'path/to/files/first_root',  // path to files (REQUIRED)
            'URL'           => 'http://localhost/files/first_root/',   // URL to files (REQUIRED)
            'alias'         => 'First home', // The name to replace your actual path name. (OPTIONAL)
            'accessControl' => 'access'      // disable and hide dot starting files (OPTIONAL)
            'driver'        => 'LocalFileSystem',
            'path'          => 'path/to/files/second_root',
            'URL'           => 'http://localhost/files/second_root/',
            'alias'         => 'Second home'


Something went wrong with that request. Please try again.