Config

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

Class Config variable.

View source

Public Methods

MethodDescription
__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

Arguments

Returns

mixed

Signature

public mixed __get ( \craft\web\twig\variables\string $name )

__isset()

Returns whether a config item exists.

View source

Arguments

Returns

boolean

Signature

public boolean __isset ( \craft\web\twig\variables\string $name )

get()

Returns a config item from the specified config file.

View source

Arguments

Returns

mixed

Signature

public mixed get ( \craft\web\twig\variables\string $name, \craft\web\twig\variables\string $category = \craft\services\Config::CATEGORY_GENERAL )

omitScriptNameInUrls()

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

View source

Returns

boolean

Signature

public boolean omitScriptNameInUrls ( )

usePathInfo()

Returns whether generated URLs should be formatted using PATH_INFO.

View source

Returns

boolean

Signature

public boolean usePathInfo ( )