ConfigVariable
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\ConfigVariable
- Since
- 1.0
Class ConfigVariable
See also http://craftcms.com
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. |
| getResourceTrigger() | Returns the CP resource trigger word. |
| 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
Signature
public string __get ( $name )
# __isset()
Returns whether a config item exists.
View source (opens new window)
Arguments
$name(string (opens new window))
Returns
Signature
public boolean __isset ( $name )
# get()
Returns a config item from the specified config file.
View source (opens new window)
Arguments
$name(string (opens new window))$file(string (opens new window))
Returns
mixed
Signature
public mixed get ( $name, $file = 'general' )
# getResourceTrigger()
Signature
public string getResourceTrigger ( )
# omitScriptNameInUrls()
Signature
public boolean omitScriptNameInUrls ( )
# usePathInfo()
Returns whether generated URLs should be formatted using PATH_INFO.
View source (opens new window)
Returns
Signature
public boolean usePathInfo ( )