Upgrading to Drupal 8 looks a lot like Symfony

The good news about upgrading to Drupal 8 is that it looks a lot like Symfony, the bad news is that upgrading to Drupal 8 looks a lot like Symfony.  I guess it's just your perspective but if you have a lot of sites steeped deeply in D7, it's quite a transition.  However, if most…

Latest Useful Web Resources and Links #1, March 2016

I created this page as a running repository of useful, miscellaneous web notes for later reference. Javascript & JQuery How to get the latest version of JQuery: Useful info about Javascript and JQuery source maps -- an explanation about what they are and how they are used: http://elijahmanor.com/the-magic-of-the-jquery-1-9-source-map/ Parsley -- A reliable and easy…

Symfony & Twig: Simple month and year form selection widget

This is a very useful Twig that I use in a lot of different forms.  I attach a listener and when they click "Update" it will redirect the user by appending the URL with the /year/month to hook nice and cleanly in built-in routes to pass the year and month into different controllers.  

Symfony & Doctrine: Using table joins with unassociated entities

In Symfony using Doctrine, if no association is available for two entities, you can still join them and treat them like they have a relationship.  To do so, you have to use the "Join: WITH" method.  Here's an example query to illustrate, notice the "a.user = u.id". Some other helpful links on Stack Overflow:…

Symfony: Re-authenticate FOS user automatically without making users log back in

Integrating a Wordpress user login with Symfony is pretty painless if you need to share user sessions.  Just don't rely solely on that Wordpress cookie, but cross reference a randomly assigned hash that can reference back to the Wordpress user's table.  When you get your system to authenticate a user and you find your FOS…