Skip to content

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

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

__isset() ​

Returns whether a config item exists.

View source

Arguments ​

Returns ​

boolean

get() ​

Returns a config item from the specified config file.

View source

Arguments ​

Returns ​

mixed

omitScriptNameInUrls() ​

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

View source

Returns ​

boolean

usePathInfo() ​

Returns whether generated URLs should be formatted using PATH_INFO.

View source

Returns ​

boolean