My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
CreateHTMLDirectories  
how to make the webdav server accessible by a browser
since0.7
Updated Oct 7, 2011

Introduction

By default SabreDAV will throw an error if a user tries to attempt the server with a browser. SabreDAV comes with a simple plugin that produces apache-like indexes for your virtual file system.

Since version: 0.7

Example:

// We assume $server is a Sabre_DAV_Server

$plugin = new Sabre_DAV_Browser_Plugin();
$server->addPlugin($plugin);

That's it. If you don't like the default style (which is a bit plain), you can extend the class and override the html generating methods.


Sign in to add a comment
Powered by Google Project Hosting