• Symfony2: Reload user roles

    Symfony2: Reload user roles

    If you are not using FOSUserBundle for managing your user system, then you might have stumbled onto a...
  • Quick tip: Joomla white page and rsync

    Quick tip: Joomla white page and rsync

    I recently worked on a joomla page. And since I love rsync, I made myself a build/sync script to update...
  • Symfony2: How to set the correct host for routing in console command

    Symfony2: How to set the correct host for routing in console command

    Quick tip for setting the correct host in your custom symfony2 command. $this->getContainer()->get(‘router’)->getContext()->setHost(‘www.example.com’); This...
  • Serialization of UploadedFile is not allowed fix

    Serialization of UploadedFile is not allowed fix

    If you are doing file uploads in Symfony2 with help from the cookbook tutorial you might have ran into...
  • Symfony2 Error: UsernamePasswordToken::serialize() must return a string or NULL

    Symfony2 Error: UsernamePasswordToken::serialize() must return a string or NULL

    Getting the following error? Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken::serialize()...
  • How to use Pagerfanta with Symfony2 and Doctrine2

    How to use Pagerfanta with Symfony2 and Doctrine2

    So let’s assume you want to use a pager with your Symfony2 application. If you are like me, you...

Think twice, do once.

Cut your own wood and it will warm you twice.