Category Archives: Symfony

Changing Symfony Routing Requirements

One of my favorite features of Symfony is the routing sub-system.  It allows for very flexible routing rules.  On a project I have been working on, I have been tweaking the routing requirements in Symfony.  One really nice feature is … Continue reading

Posted in 1.4, PHP, Symfony | Tagged , , , , , , | Leave a comment

Symfony including extra libraries or classes

I had a need lately to include an external library of php classes in a Symfony project. On option was dumping them into the lib folder, but I didn’t want to do that. At first I tried placing a script … Continue reading

Posted in 1.4, PHP, Symfony | Tagged , , , , | 1 Comment

Doctrine Query Foreach Problem

The other day I was trying foreach loop through a Doctrine collection. I was getting confused, because my loop was never executing even though count() returned a positive value. It turns out that I had forgotten to run ->execute() on … Continue reading

Posted in 1.4, Doctrine, PHP, Symfony | Tagged , | Leave a comment

Symfony override getter

Similar to overriding setters, overriding getters in symfony has a strange syntax. Rather than doing the normal override code you must use special methods. This code will NOT work consistently: However, this code will work: Although the first code will … Continue reading

Posted in 1.4, Symfony | Tagged , , , , | 1 Comment

Allowing Slashes in a Symfony Route

Symfony routing is a wonderful tool. Recently, however, I have wanted to include a slash in a route parameter. This can seem problematic as symfony uses slashes to delimit parameters. For example, lets say I wanted the url http://www.example.com/user/john/jacob/jingleheimer/schmidt to … Continue reading

Posted in 1.4, Symfony | Tagged , , , , | 1 Comment

What is a Framework?

What is a Framework? Why should I use one? Which one should I choose? Often new programmers will ask such questions. Frameworks have become important enough in software development that ignoring them would be unwise, so in this post I … Continue reading

Posted in Symfony | Tagged , , | Leave a comment

Symfony Framework for PHP

Our Company has been in the process of evaluating the Symfony Framework for PHP. We have written several projects using the framework some small and some larger. In this post I intend to layout some of pluses and drawbacks of … Continue reading

Posted in 1.4, PHP, Symfony | Tagged , , | 4 Comments

PHP Editor

As a programmer I have used many different PHP editors over the years. Some have been great experiences while others not so much. In this post I would like to highlight two that I think cover most tasks and needs: … Continue reading

Posted in PHP, Symfony | Tagged , | Leave a comment

Clearing Symfony Cache for a Single Page

Symfony cache is a useful part of the Symfony Framework. It allows you to cache pages, partials, and other sections of pages so that the page is only generated when necessary. However, if you make heavy use of it, you … Continue reading

Posted in 1.4, PHP, Symfony | Tagged , , | Leave a comment

Doctrine Wherein with Empty Array

Today I was working with some doctrine code and was running into a strange bug. I was running a query that should have returned no objects, but instead returned all objects from a table. It turns out it was due … Continue reading

Posted in 1.4, Doctrine, Symfony | Tagged , , , , , | Leave a comment