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
$name
(string (opens new window))
Returns
mixed
# __isset()
Returns whether a config item exists.
View source (opens new window)
Arguments
$name
(string (opens new window))
Returns
# get()
Returns a config item from the specified config file.
View source (opens new window)
Arguments
$name
(string (opens new window))$category
(string (opens new window))
Returns
mixed
# omitScriptNameInUrls()
Returns whether generated URLs should omit 'index.php'.
View source (opens new window)
Returns
# usePathInfo()
Returns whether generated URLs should be formatted using PATH_INFO.
View source (opens new window)
Returns
← CategoryGroups Cp →