Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Contao
Environment
__get
Contao\Environment::__get PHP Method
Environment Class Documentation
Show file
Open project: contao/core-bundle
__get()
public
method
Return an environment variable
Deprecation:
Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Environment::get() instead.
public
__get
(
string
$strKey
) :
string
$strKey
string
The variable name
return
string
The variable value
public function __get($strKey) { return static::get($strKey); }
Environment
__clone
__construct
__get
__set
agent
base
documentRoot
encodeRequestString
get
getInstance
host
httpAcceptEncoding
httpAcceptLanguage
httpHost
httpUserAgent
httpXForwardedHost
indexFreeRequest
ip
isAjaxRequest
path
phpSelf
queryString
relativeRequest
request
requestUri
reset
script
scriptFilename
scriptName
server
set
ssl
uri
url