Category: Resources

  • Symfony caching resource list and information

    Once I started digging into Symfony caching I found all kinds of information all over. I’ll use this page to catalog it all for myself and others. This way I can quickly find what I am looking for. Cache – From the docs. This is the overall plain documentation about Symfony cache. It covers the […]

  • How to install and configure Redis in Symfony 5+ for local testing

    Installing and configuring Redis for Symfony takes quite a few steps. So many I’d never remember them all. This article is for myself at a later date as well as anyone else who finds it useful(LOL this is the most popular article on this site getting hundreds of views a week). I’ll be updating this […]

  • Symfony 5+ check if user is logged in inside a twig template

    Symfony 5+ check if user is logged in inside a twig template

    Often you may need to know whether a user is logged in or not inside a template to show or not show something. For example you might want to show links to login or register if a user is not logged in but show a link to logout if the user is logged in. To […]

  • PHP resource links

    What’s New in PHP 8 (Features, Improvements, and the JIT Compiler)

  • HTTP headers and caching resources.

    Resources all about HTTP headers and caching. Caching tutorial -> great article to start with, explains all the basics of caching. Hypertext Transfer Protocol (HTTP/1.1): Caching  rfc spec

  • How to create a cookie in Symfony 5.0+ and render a template in a controller

    How to create a cookie in Symfony 5.0+ and render a template in a controller

    First what I wanted to do was create a cookie in a Controller and display a template at the same time. Sort of like when a user visits a page you set a page count or something. Using cookies instead of sessions is good for when you have a user that is not logged in […]

  • Symfony 5 how to clear the cache

    I can never ever remember where I see anything ever I read entirely too much about entirely too many subjects. I mostly use this site as my own personal google. To clear all caches php bin/console cache:pool:clear cache.global_clearer Symfony docs link to more info.

  • Doctrine migrations links

    Doctrine migrations links

    I have trouble navigating the Symfony documentation so I create lists of links here so I can just easily find what I need again later. MigrationsBundle link and info -> shows how to run migrations and all of the doctrine migration related commands Doctrine Symfony overview -> more information about doctrine and migrations.

  • Stupid linux issues.

    This is my collection of stupid. Top of the list Debian/Ubuntu removes apt-key support and doesn’t tell anyone they did it, doesn’t give anyone a single hint as to what to do. No just remove/deprecate shit and don’t tell a single soul on earth. This kind of stupid makes me want to leave the industry […]

  • Linux su command not working, does nothing but show $ prompt

    Linux su command not working, does nothing but show $ prompt

    So you found the magic sauce did ya?  So you created a user with useradd or adduser and you try to switch over to that user in a terminal, probably logged in through ssh as root right. You are trying to use the su – username command but all you get is a $. And […]