izartu API

bootstrap.php

Application bootstrap: fixed paths, class autoloading and configuration.

Every entry point (public/index.php, private/cli/*, the test suite) requires this file; config.php holds the operator-editable settings.

Table of Contents

Constants

PRIVATE_DIR  : mixed = __DIR__ . '/'
Application bootstrap: fixed paths, class autoloading and configuration.

Functions

env()  : string
An environment variable as a string, or a default when unset/empty.
basePath()  : string
The base URL path the request came in on: '' at a domain root, '/sub' in a sub-directory install. Off the web there is no request, so the CLI and the test suite get ''.

Constants

PRIVATE_DIR

Application bootstrap: fixed paths, class autoloading and configuration.

public mixed PRIVATE_DIR = __DIR__ . '/'

Every entry point (public/index.php, private/cli/*, the test suite) requires this file; config.php holds the operator-editable settings.

Functions

env()

An environment variable as a string, or a default when unset/empty.

env(string $name[, string $default = '' ]) : string
Parameters
$name : string

The variable name.

$default : string = ''

Value when the variable is unset or empty.

Return values
string

basePath()

The base URL path the request came in on: '' at a domain root, '/sub' in a sub-directory install. Off the web there is no request, so the CLI and the test suite get ''.

basePath() : string
Return values
string
On this page

Search results