Craft 3 Class Reference

Class craft\web\twig\variables\Config

Inheritance
craft\web\twig\variables\Config
Available since version
3.0
Deprecated since version
in 3.0
Source Code
https://github.com/craftcms/cms/blob/master/src/web/twig/variables/Config.php

Class Config variable.

Public Methods
Method Description Defined By
__get() Returns a config item. craft\web\twig\variables\Config
__isset() Returns whether a config item exists. craft\web\twig\variables\Config
get() Returns a config item from the specified config file. craft\web\twig\variables\Config
omitScriptNameInUrls() Returns whether generated URLs should omit 'index.php'. craft\web\twig\variables\Config
usePathInfo() Returns whether generated URLs should be formatted using PATH_INFO. craft\web\twig\variables\Config

Method Details

__get() public method #

Returns a config item.

public mixed __get ( \craft\web\twig\variables\string $name )
$name string

__isset() public method #

Returns whether a config item exists.

public boolean __isset ( \craft\web\twig\variables\string $name )
$name string

get() public method #

Returns a config item from the specified config file.

public mixed get ( \craft\web\twig\variables\string $name, \craft\web\twig\variables\string $category = \craft\services\Config::CATEGORY_GENERAL )
$name string
$category string

omitScriptNameInUrls() public method #

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

public boolean omitScriptNameInUrls ( )

usePathInfo() public method #

Returns whether generated URLs should be formatted using PATH_INFO.

public boolean usePathInfo ( )