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()

Signature

public string __get ( $name )

# __isset()

Returns whether a config item exists.

View source (opens new window)

Arguments

Returns

boolean (opens new window)

Signature

public boolean __isset ( $name )

# get()

Returns a config item from the specified config file.

View source (opens new window)

Arguments

Returns

mixed

Signature

public mixed get ( $name, $file = 'general' )

# getResourceTrigger()

Returns the CP resource trigger word.

View source (opens new window)

Returns

string (opens new window)

Signature

public string getResourceTrigger ( )

# omitScriptNameInUrls()

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

View source (opens new window)

Returns

boolean (opens new window)

Signature

public boolean omitScriptNameInUrls ( )

# usePathInfo()

Returns whether generated URLs should be formatted using PATH_INFO.

View source (opens new window)

Returns

boolean (opens new window)

Signature

public boolean usePathInfo ( )