How to show or access cookie values in Symfony Twig views

Strange how obscure it is to find a clear example of how to just access or show the value of a cookie in Twig, so here it is! Twig is the templating engine that powers Symfony views.  Symfony is the PHP framework from Sensio Labs. If you are a company that uses open-source software…

Looping through all request variables in a Symfony Twig view

Here is a quick way to access all request variables and output them in a Symfony Twig view:  

PHP Symfony: Accessing repositories from inside a repository

Okay, so Sensio Lab's Symfony is great, but those repositories are a bit limiting in their design scope.  I mean, how often do you need to access data through custom database queries and other cross referencing between database tables and not only use one table?  Of course, you're going to have to combine database tables…

Symfony MySQL Doctrine Mapping Field Type Definitions: TinyInt’s a Boolean, Any Kind of “Text” is Just “text” and Other “Gotchas”

A MySQL "tinyint" field, regardless of length, is mapped as a boolean in Symfony's MySQL DBAL platform.  Good to know, so when you start typing in those Doctrine ORM mapping files in annotation or my preferred way, YML files, you won't get a fatal error because you didn't define the field properly. Here's a list…