![]() |
|
Installing an extension
Installing the files
To install an extension, you just have to download it, install library files in a new directory (out of the web server's scope) we named /lib in this document, and put the files wich must be accessible through the Web in a directory where they can be accessed by the server, named /doc. /lib will usually be a subdirectory of phplib and /doc a subdirectory of htdocs.
Please read the documention provided with the extension you are installing, it may have some restrictions as to where files are put.
Then, configure the extension with /lib/config.php3.
Declaring the use of an extension in the configuration file
You must declare all the extensions you use in the main daCode config file (usually phplib/config.php3). Use the extensions array for that. In this array, you have to put the path to the /lib directory, relative to daCode phplib directory. For exemple, let's suppose I have the following directory hierarchy:
src/ | |- phplib/ | | | |- ext1/ | | | | | `- config.php3 | | | |- themes/ | `- ext2/ |
$this->extensions = array( "ext1/", "../ext2/" ); |