Blog

Learn about Symfony 2, Doctrine 2 and other related stuff
May 3
May 3

Decreasing the amount of queries with Doctrine

Sometimes when you use Symfony and Doctrine you may notice that the amount of queries can rise pretty quickly. Sometimes this only becomes apparent after adding enough dummy data, but a good programmer knows where the weak points are. There are three major pitfalls here. I’ve written about each and their solution.

  Read more
Jan 3
Jan 3

Symfony Tips & Tricks V: Add Ajax Filters to the Pagination

It’s been a while since I had some time to write, but here it finally is: how to neatly filter your pagination with ajax. Now this requires some javascript which you may or may not understand. I tried to keep it simple for implementing, yet flexible for those of you who want to modify, tweak […]

  Read more
Nov 1
Nov 1

Symfony Tips & Tricks IV: Generalized & Ajax Pagination

For today’s post I’m assuming you’ve read the Jobeet Tutorial, or at least made it as far as Day 7. I’ll extend on the tutorial of pagination and add, with my own example, instructions on setting it up more generalized and adding ajax to the mix to load the pages on the spot.

  Read more
Nov 0
Nov 0

Symfony Tips & Tricks III: Generalizing and formatting forms

Symfony has extended support for forms, including formatting them. But by default Symfony generates them separately and not generalized. In this post I’ll talk about creating a global _form partial and how to use it to prevent code duplication, but still give frontend programmers and designers all the flexibility they need.

  Read more
Nov 0
Nov 0

Symfony Tips & Tricks II: Use gmail with swift mailer

Today it’s about e-mail. Almost every application uses e-mail, even if it’s just an activation e-mail for your account or link to reset a forgotten password. Normally you can easily use your hosting’s smtp server, but there are exceptions: for example if you need to use e-mail on a local machine or have a hosting provider that doesn’t allow or provide smtp access…

  Read more
Nov 0
Nov 0

Symfony Tips & Tricks II: Use gmail with swift mailer

Today it’s about e-mail. Almost every application uses e-mail, even if it’s just an activation e-mail for your account or link to reset a forgotten password. Normally you can easily use your hosting’s smtp server, but there are exceptions: for example if you need to use e-mail on a local machine or have a hosting provider that doesn’t allow or provide smtp access…

  Read more
Oct 0
Oct 0

SMO over SEO?

One of the newest buzzes on the web is SMO: Social Media Optimization. By some it is known as the follower of SEO, while others suggests it’s just a different name for how we treat SEO today. For myself I tend to side with the latter view, but for this it must be clear what SEO and SMO mean.

  Read more
Oct 0
Oct 0

Symfony Tips & Tricks I: Symfony I18n and messages extraction

Symfony claims to fully support multilingual sites (and it does), but I ran into some problems especially with Forms and the MVC pattern. While adding language support in the view is very easy and natural, adding language support on the controller side is very tricky (especially outside actions). Also forms are not supported properly. Fortunately I did your research for you and came up with some solutions…

  Read more
Oct 0
Oct 0

Dark PHP Magic $1337

Just for a bit of fun in between I read this┬ápost on reddit about how $ actually works in php. It’s written as if it’s some sort of dark magic on how it all works. I got inspired to take it one level further and do a small post on how dark this magic can […]

  Read more
Oct 0
Oct 0

NetBeans over Eclipse for Symfony

It’s been a short stay for Eclipse. After I fell in love with using an IDE for my PHP development, I wanted more. I happened to cross some blog posts on Symfony and Symfony 2 (check it out, it’s awesome, but unfortunately not ready for production yet). And started wondering what IDE the Symfony developers use..

  Read more