MainController :: header
Request
GET Parameters
None
POST Parameters
None
Uploaded Files
None
Request Attributes
| Key | Value |
|---|---|
| _controller | "App\Controller\MainController::header" |
| _format | "html" |
| _locale | "sw" |
| _stopwatch_token | "f8ae5d" |
| enabledVersion | 1 |
Request Headers
| Header | Value |
|---|---|
| accept | "*/*" |
| accept-charset | "ISO-8859-1,utf-8;q=0.7,*;q=0.7" |
| accept-encoding | "gzip, br, zstd, deflate" |
| accept-language | "en-us,en;q=0.5" |
| connection | "close" |
| content-length | "" |
| content-type | "" |
| forwarded | "for="216.73.216.10";host="vibs-demo.wisne.host";proto=https, for="127.0.0.1"" |
| host | "vibs-demo.wisne.host" |
| user-agent | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" |
| x-forwarded-for | "216.73.216.10, 127.0.0.1" |
| x-php-ob-level | "3" |
| x-real-ip | "216.73.216.10" |
Request Content
Request content not available (it was retrieved as a resource).
Response
Response Headers
| Header | Value |
|---|---|
| cache-control | "no-cache, private" |
| date | "Sun, 26 Oct 2025 08:50:30 GMT" |
| x-debug-token | "b07c80" |
Cookies
Request Cookies
No request cookies
Response Cookies
No response cookies
Session
Session Metadata
No session metadata
Session Attributes
No session attributes
Session Usage
0
Usages
Stateless check enabled
Session not used.
Flashes
Flashes
No flash messages were created.
Server Parameters
Server Parameters
Defined in .env
| Key | Value |
|---|---|
| ACCESS_KEY_ID | "b98a82160fbcaeeaf55c3d2df0146dfb" |
| ACCESS_KEY_SECRET | "b1092335e7971790ee38becca18155255e103e055dab78b219e2079fcc4022a5" |
| APP_ENV | "dev" |
| APP_SECRET | "db547405de16e234b38c11b2c0138fbc" |
| BUCKET_NAME | "whb" |
| DASHBOARD_VERSION | "2.1.2" |
| DATABASE_URL | "mysql://vibsdemo:ZYRghI3nxElu1uFq16HL@127.0.0.1:3306/vibsdemo" |
| DOMAIN_NAME | "https://demosite.wvtech.link" |
| LOCK_DSN | "semaphore" |
| MAILER_DSN | "smtp://e7629791314a7b:0dbfe28e411b7b@smtp.mailtrap.io:2525?encryption=tls&auth_mode=login" |
| NO_REPLY_MAIL_ADDRESS | "no-reply@wisne.co" |
| R2_ACCOUNT_ID | "45ca4c38fc943b1087b55d074d1d5c71" |
| SITECODE | "wisne" |
| TEMPLATE_DEBUG_SHOW_ALL | "false" |
| TEMPLATE_NAME | "vibs" |
Defined as regular env variables
| Key | Value |
|---|---|
| APP_DEBUG | "1" |
| CONTENT_LENGTH | "" |
| CONTENT_TYPE | "" |
| DOCUMENT_ROOT | "/home/wisne-vibs-demo/htdocs/vibs-demo.wisne.host/public" |
| DOCUMENT_URI | "/index.php" |
| FCGI_ROLE | "RESPONDER" |
| GATEWAY_INTERFACE | "CGI/1.1" |
| GEOIP_CITY | "Oxnard" |
| GEOIP_CITY_CONTINENT_CODE | "NA" |
| GEOIP_CITY_COUNTRY_CODE | "US" |
| GEOIP_CITY_COUNTRY_CODE3 | "USA" |
| GEOIP_CITY_COUNTRY_NAME | "United States" |
| GEOIP_COUNTRY_CODE | "US" |
| GEOIP_COUNTRY_CODE3 | "USA" |
| GEOIP_COUNTRY_NAME | "United States" |
| GEOIP_LATITUDE | "34.1453" |
| GEOIP_LONGITUDE | "-119.1091" |
| GEOIP_POSTAL_CODE | "93033" |
| GEOIP_REGION | "CA" |
| HOME | "/home/wisne-vibs-demo" |
| HTTPS | "on" |
| HTTP_ACCEPT | "*/*" |
| HTTP_ACCEPT_CHARSET | "ISO-8859-1,utf-8;q=0.7,*;q=0.7" |
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate" |
| HTTP_ACCEPT_LANGUAGE | "en-us,en;q=0.5" |
| HTTP_CONNECTION | "close" |
| HTTP_FORWARDED | "for="216.73.216.10";host="vibs-demo.wisne.host";proto=https, for="127.0.0.1"" |
| HTTP_HOST | "vibs-demo.wisne.host" |
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" |
| HTTP_X_FORWARDED_FOR | "216.73.216.10, 127.0.0.1" |
| HTTP_X_REAL_IP | "216.73.216.10" |
| MGT | "1" |
| PATH_INFO | "" |
| PHP_SELF | "/index.php" |
| PHP_VALUE | """ \n error_log=/home/wisne-vibs-demo/logs/php/error.log;\n memory_limit=64M;\n max_execution_time=60;\n max_input_time=60;\n max_input_vars=10000;\n post_max_size=64M;\n upload_max_filesize=64M;\n date.timezone=UTC;\n display_errors=off; """ |
| QUERY_STRING | "_path=_format%3Dhtml%26_locale%3Dsw%26_controller%3DApp%255CController%255CMainController%253A%253Aheader" |
| REDIRECT_STATUS | "200" |
| REMOTE_ADDR | "127.0.0.1" |
| REMOTE_PORT | "" |
| REQUEST_METHOD | "GET" |
| REQUEST_TIME | 1761468630 |
| REQUEST_TIME_FLOAT | 1761468630.3455 |
| REQUEST_URI | "/_fragment?_path=_format%3Dhtml%26_locale%3Dsw%26_controller%3DApp%255CController%255CMainController%253A%253Aheader" |
| SCRIPT_FILENAME | "/home/wisne-vibs-demo/htdocs/vibs-demo.wisne.host/public/index.php" |
| SCRIPT_NAME | "/index.php" |
| SERVER_ADDR | "127.0.0.1" |
| SERVER_NAME | "vibs-demo.wisne.host" |
| SERVER_PORT | "443" |
| SERVER_PROTOCOL | "HTTP/1.0" |
| SERVER_SOFTWARE | "nginx/1.21.4" |
| SYMFONY_DOTENV_VARS | "DASHBOARD_VERSION,APP_ENV,APP_SECRET,TEMPLATE_DEBUG_SHOW_ALL,MAILER_DSN,DATABASE_URL,TEMPLATE_NAME,NO_REPLY_MAIL_ADDRESS,LOCK_DSN,SITECODE,BUCKET_NAME,R2_ACCOUNT_ID,ACCESS_KEY_ID,ACCESS_KEY_SECRET,DOMAIN_NAME" |
| T | "z" |
| TPL | "8" |
| USER | "wisne-vibs-demo" |
Parent Request
Return to parent request (token = f769e4)
| Key | Value |
|---|---|
| _controller | "App\Controller\MainController::secondaryHeader" |
| _format | "html" |
| _locale | "sw" |
| _stopwatch_token | "6f6b37" |
| pageContent | App\Entity\PageContent {#673 -id: 19 -name: "product-4" -title: "Product 4" -content: "<p>In Symfony 3, we used to store parameters that we needed globally accessible in the parameters.yaml file, like the google analytics ID, the recaptcha id etc. However in Symfony 4, the introduction of the .env file moved all those parameters that we used to place in that file, to the new one. Till the date, for some developers it isn't so clear how to obtain these values now within a Twig view.</p><p>In this short article, we will show you 3 ways to obtain the value from your .env file using Twig in your Symfony 5 project.</p><h2>Pass the parameter to the view from the controller</h2><p>The most obvious solution to obtain a .env parameter inside a twig view is to simply pass it from the controller just as a regular variable:</p><p> </p><h2>Using a Twig Custom Function</h2><p>The other option, which certainly suits better in most of the cases, is to create a new twig custom function that returns the environment variable on your views directly. Create the new extension if you don't have any created and register the new function get_env:</p><p> ü,ö,ä </p>" -language: "en" -createdAt: DateTime @1642779947 {#453 : 2022-01-21 15:45:47.0 UTC (+00:00) } -updatedAt: DateTime @1710753892 {#662 : 2024-03-18 09:24:52.0 UTC (+00:00) } -groupName: "products" -primaryThumbnail: null -primaryImage: null -tags: "" -keywords: "" -metaDescription: "" -robotTags: "index,follow" -titleFormat: "pagetitle-sitename" -pageDownloads: Doctrine\ORM\PersistentCollection {#461 …} -albums: Doctrine\ORM\PersistentCollection {#454 …} -pageType: null -pageTypeData: null -otherSeoTags: [ "ICMB" => null "author" => null "dcTitle" => null "geoTagRegion" => null "geoTagPosition" => null "geoTagPlacename" => null ] -openGraphTags: null -primaryThumbnailMediaFile: Proxies\__CG__\App\Entity\MediaFile {#554 …} -primaryImageMediaFile: null -pinned: false -ranking: 0 -subgroupName: "" } |