Config

Type
Class
Namespace
craft\web\twig\variables
Inherits
craft\web\twig\variables\Config
Since
3.0.0
Deprecated in
in 3.0.0

Class Config variable.

View source (opens new window)

# Public Methods

Method Description
__get() Returns a config item.
__isset() Returns whether a config item exists.
get() Returns a config item from the specified config file.
omitScriptNameInUrls() Returns whether generated URLs should omit 'index.php'.
usePathInfo() Returns whether generated URLs should be formatted using PATH_INFO.

# __get()

Returns a config item.

View source (opens new window)

Arguments

Returns

mixed

# __isset()

Returns whether a config item exists.

View source (opens new window)

Arguments

Returns

boolean (opens new window)

# get()

Returns a config item from the specified config file.

View source (opens new window)

Arguments

Returns

mixed

# omitScriptNameInUrls()

Returns whether generated URLs should omit 'index.php'.

View source (opens new window)

Returns

boolean (opens new window)

# usePathInfo()

Returns whether generated URLs should be formatted using PATH_INFO.

View source (opens new window)

Returns

boolean (opens new window)