ConfigVariable

Type
Class
Namespace
Craft
Inherits
Craft\ConfigVariable
Since
1.0

Class ConfigVariable

See also http://craftcms.com

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.
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

Arguments

Returns

string

Signature

public string __get ( $name )

__isset()

Returns whether a config item exists.

View source

Arguments

Returns

boolean

Signature

public boolean __isset ( $name )

get()

Returns a config item from the specified config file.

View source

Arguments

Returns

mixed

Signature

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

getResourceTrigger()

Returns the CP resource trigger word.

View source

Returns

string

Signature

public string getResourceTrigger ( )

omitScriptNameInUrls()

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

View source

Returns

boolean

Signature

public boolean omitScriptNameInUrls ( )

usePathInfo()

Returns whether generated URLs should be formatted using PATH_INFO.

View source

Returns

boolean

Signature

public boolean usePathInfo ( )