Symfony2

  • Symfony, XDebug and the maximum nesting level
    Nov 15, 2015 ·

    Here you are, developing your code based on the Symfony2 framework. Creating a form here, add a Twig template there, until suddenly, boom! Your site doesn’t work anymore, and all the info you …

    Read more →
  • Understanding Symfony2 Forms
    Sep 11, 2015 ·

    To actually use Symfony2 forms, all you need to do is read some documentation, a few blog posts and you’ll be up and running in a couple of minutes. Understanding Symfony2 forms however, is a …

    Read more →
  • Advanced user switching
    Feb 24, 2015 ·

    A really neat trick in the Symfony Security component is the fact that you can impersonate or “switch” users. This allows you to login as another user, without supplying their password. …

    Read more →
  • Debugging Symfony components
    Dec 31, 2014 ·

    Don’t you hate it when you are stepping through your debugger during a Symfony application debug session, and all of a sudden it cannot find files anymore as Symfony uses code located in the …

    Read more →
  • Deepdive into the symfony2 security component: part 1
    Oct 19, 2014 ·

    Once in a while I like diving into code and see how things work under the hood. And as the symfony2 framework consists of many different components, bundles and bridges, there is a lot to discover. …

    Read more →
  • Symfony2: logging out
    Oct 6, 2014 ·

    One of the “golden rules” of symfony2 is to never hardcode urls or paths inside your code or templates. And letting symfony deal with the generation of your urls and paths makes your life …

    Read more →
  • Throttle your API calls: RateLimitBundle
    May 28, 2014 ·

    A web application is not complete without an API nowadays. APIs allow third parties - or just end users - to use the data from the platform for whatever they want. But by allowing applications to make …

    Read more →
  • Dynamic form modification in Symfony2
    Mar 19, 2014 ·

    Sometimes (or actually, a lot of the time), handling forms will go beyond the basics. And even though Symfony2 gives you out-of-the-box a really clean way of creating forms, it sometimes just …

    Read more →
  • Symfony2 app/console bash completion
    Feb 2, 2014 ·

    If you do command line work under Linux, you probably are aware that when pressing <TAB> automatically completes your command, or give you options for it that are currently available. For …

    Read more →
  • Custom symfony2 config loader
    Jan 30, 2013 ·

    It happens more and more: large projects where your symfony2 site is just a small part in the big picture. Lots of additional components might even play a bigger part, especially when you are dealing …

    Read more →
  • MultiParamConverter for Symfony2
    Aug 4, 2012 ·

    If you know Symfony2, you probably are using (or at least, have heard of) the @paramConverter annotation from the SensioFrameworkExtraBundle. This is a really simple way to convert slugs into …

    Read more →
  • Symfony2: Implementing ACL rules in your Data Fixtures
    Jul 4, 2012 ·

    Doctrine’s DataFixtures are a great way to add test data to your application. It’s fairly easy to get this going: Create a fixureLoader that extends …

    Read more →