Skip to main content

Directory Layout

Jadu is split into a number of main directories:

DirectoryContent
assetsTwig templates
binContains the php-wrapper file used when running under FastCGI
configConfiguration files for Jadu Central
jaduApplication code, including code that interacts with the database
logsvarious log files, including Apache logs, the PHP log and any logs specific to Jadu modules
micrositesTemplates, scripts and tools for new sites created using the Jadu Galaxies module. Each Galaxies site has a directory in the microsites directory
public_htmlAll scripts that can be requested through a web browser
upgradesScripts that apply database changes during patches
varFiles and directories that are specific to an installation, such as the file cache directory, category lists, multimedia and download files, and homepage widgets. Also configuration files for Galaxies sites, which are updated when publishing Galaxies sites are stored in the var directory
vendorThird-party code and libraries required for Jadu Central functionality

Jadu directory

The top-level jadu directory, henceforth referred to as “the jadu directory”, contains code that interacts with the database, i.e. SQL queries and business logic for each module, and any code that is shared amongst multiple parts of Jadu Central. As the files under this directory mainly contain classes they are often referred to as “class files”.

The jadu directory is sub-divided into modules. The PHP include path points to this directory. Therefore when including files from the jadu directory, the first part of the path only needs to start with the file or directory directly under the jadu directory, for example:

include_once("marketing/JaduUsers.php");

public_html directory

The public_html directory contains all scripts that can be requested through a web browser, i.e. it is the document root for the web server. Directories of note under public_html include:

DirectoryContent
imageswhere all site images uploaded through the Control Center are stored
sitewhere all files and directories for the web site are stored
site/styleswhere stylesheets for the site are stored
jaducontains scripts for the Jadu Control Center