Documentation > Configuration

Configuration

Drake configuration is an INI file under its installation directory (modules/drake inside Drupal’s main directory), named drake.ini. With that configuration file you’ll be able to set up different CakePHP applications that will be available for running in Drupal via Drake, and also specify which of those will be executed by default.

Some Drake users may be wondering why we chose to use a configuration file instead of Drupal’s built in settings API. There are several reasons (such as to make Drake configurable the same way its sister project, Jake, is), but main of all: to keep things simple. Since the most important part of Drake configuration file is the path to your CakePHP application it is easier to maintain paths on a configuration file than on the database.

Drake’s configuration file behaves the same way any standard INI file: by defining sections and key-value pairs. Each section should be defined between brackets. There’s one special section (named settings) that is used to specify Drake’s general settings, while the rest of the sections will be considered as the definition of different CakePHP applications that will be available through Drake.

Let’s see an example configuration file:

[settings]         

default = "my_app"         

[my_app]   

name = "My CakePHP application"
path = "../cake1.2/app/webroot"
url = "/cake1.2"
send = "parameter=value"

Each application should define the following parameters (note that all strings must be enclosed between quotes, and that certain parameters are not mandatory):

Remember that for each application you need to set up its identifier (only consisting of letters, numbers, and the underscore sign) as the INI section name, without using the reserved word settings, and then simply set your application specific parameters.

The settings section that is used to specify Drake general settings, consists of the following parameters:

Documentation


Navigate

 

Categories


Can't Miss