Wolff uses the constants defined in the
You can access to these constants calling some functions from the standard library too.
The config file has the following definitions/keys inside an array named
dbms: the database management system, you can choose between 'mysql', 'pgsql' and 'sqlite'.
server: the database host name (usually it’s refered to as localhost).
db: the database name (you can leave it empty if your page doesn’t require a database connection).
db_username: the database username.
db_password: the database username password.
root_dir: the directory of the Wolff project.
system_dir: the directory of the system folder.
app_dir: the directory of the app folder.
extension_dir: the directory of the extension folder.
cache_dir: the directory of the cache folder.
public_dir: the directory of the public folder.
Keep in mind that these paths are relative to the server root.
It's recommended not to modify these constants.
title: the page meta title.
main_page: the site's home page.
language: the site's main language, you can create a new language later and change it if you want.
development_on: the development status, true if the project is in an development environment, false otherwise (in a development environment all the errors will be displayed).
extensions_on: the extension status, true for enable them, false for disable them.
template_on: the template system status, true for enable the template in the views, false for disable it.
cache_on: the cache status, true for enable the use of cache, false for disable it.
maintenance_on: the maintenance mode status, true for enable the maintenance, false for disable it.