-
Recent Posts
Ubuntu Countdown
Archives
Recent Comments
Categories
Tags
ajax apache api bandwidth bash browsers bug config custom fields data validation Developing with Netsuite Doctrine embed error firefox forms google google analytics html HTML 5 JavaScript jQuery linux netbeans netsuite Netsuite Bugs Netsuite Errors Netsuite Sucks network override PHP PHP Framework php toolkit plugin routing sample code script search security Symfony task Ubuntu web browsers xml YML
Category Archives: 1.4
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 factories.yml, PHP Framework, routing, routing.yml, sample code, Symfony, YML
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
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
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
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
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
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
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
Making Symfony Routes Available in Tasks
By default symfony puts the routing.yml file in an application’s config folder. This is nice if you wish to have separate routing for separate apps. However, if you only have one app, it greatly simplifies things to place this file … Continue reading
Symfony tasks, sfContext, and Routing
When working with Symfony tasks, sfContext is not available like it normally is in a Symfony project. The following code, for example, won’t work in a task: Rather, in a task you can access the routing by using this: Note: … Continue reading
