My favorites | Sign in
Project Logo
                
Search
for
Updated Mar 29, 2009 by evertpot
Labels: since0.7
CreateHTMLDirectories  
how to make the webdav server accessible by a browser

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
Hosted by Google Code