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.
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.
Arguments ​
$name(string)
Returns ​
mixed
__isset() ​
Returns whether a config item exists.
Arguments ​
$name(string)
Returns ​
get() ​
Returns a config item from the specified config file.
Arguments ​
Returns ​
mixed
omitScriptNameInUrls() ​
Returns whether generated URLs should omit 'index.php'.
Returns ​
usePathInfo() ​
Returns whether generated URLs should be formatted using PATH_INFO.