Contao – Methoden der Class Environment
Was auch $_SERVER liefert, übernimmt in Contao die Klasse Environment:
var_dump (Environment::get('scriptFilename'));
var_dump (Environment::get('scriptName'));
var_dump (Environment::get('phpSelf'));
var_dump (Environment::get('documentRoot'));
var_dump (Environment::get('requestUri'));
var_dump (Environment::get('httpAcceptLanguage'));
var_dump (Environment::get('httpAcceptLanguage'));
var_dump (Environment::get('httpAcceptEncoding'));
var_dump (Environment::get('httpUserAgent'));
var_dump (Environment::get('httpHost'));
var_dump (Environment::get('httpXForwardedHost'));
var_dump (Environment::get('ssl'));
var_dump (Environment::get('url'));
var_dump (Environment::get('ip'));
var_dump (Environment::get('server'));
var_dump (Environment::get('path'));
var_dump (Environment::get('script'));
var_dump (Environment::get('request'));
var_dump (Environment::get('indexFreeRequest'));
var_dump (Environment::get('uri'));
var_dump (Environment::get('base'));
var_dump (Environment::get('host'));
var_dump (Environment::get('isAjaxRequest'));
var_dump (Environment::get('agent'));
Infos zu Insert Tags gibts hier:
https://contao.org/de/manual/3.3/managing-content.html