SUBSCRIBE VIA RSS


Subscribe to our feed

Symfony Experts

Symfony Experts
If you have an urgent question for a symfony-related issue, this is the place to ask.

Topics

TWITTER

Stack Overflow


The old fashioned way

RECENT TUNES

  Symfony Articles

February 23, 2010 – 9:11am symfony 1.0 migrations

I’m working on a plugin for symfony 1.0 and am really enjoying this workflow. Yes, symfony 1.0 is 4 versions old and should not be used for new projects.

With the help of the sfPropelMigrationsLightPlugin plugin, one of my favorites, I have been rapidly making changes to my plugin schema and adding new data to the database over and over again while I mock things up.

Here is the workflow:
More…

Posted in  Web Development   |     |  No Comments »   |  delicious  Digg

February 21, 2010 – 4:54pm Symfony Resource Reference Guide

Symfony has a ton of documentation available online. The only problem is, with so many different versions (1.0 – 1.4) in the wild, it can be hard to locate exactly the right resource when you need it. Below is a simple and straightforward list of the most useful documentation:

More…

Posted in  Web Development   |     |  5 Comments »   |  delicious  Digg

February 21, 2010 – 3:37pm Symfony Experts

Two good friends of mine just launched a new site dedicated to providing professional help to symfony developers.

Symfony Experts.

The site is very well designed and will prove to be a valuable resource for developers of all skill levels — experts can make some extra money sharing their expertise, and beginners (or experts encountering a new problem) can get quick and succinct answers to their questions.
More…

Posted in  Web Development   |     |  1 Comment »   |  delicious  Digg

December 31, 2009 – 5:44pm “Could not create database for c…o use near” error with Doctrine / Symfony

I was trying to use the symfony command line tools to rebuild my test database and I couldn’t get past this error: More…

Posted in  Web Development   |     |  1 Comment »   |  delicious  Digg

October 4, 2009 – 1:19am Symfony, Doctrine Upload File “validation failed”

After setting up a simple file upload using the symfony 1.2 forms class and a doctrine model, I hit this error right away:

500 | Internal Server Error | Doctrine_Validator_Exception
 1 field had validation error:
 * 1 validator failed on file (type)

The short solution: when using a doctrine form class and $form->save(), set the path option in your sfValidatorFile validator and do not attempt to save/set the file column yourself. If you are curious why this is, continue reading. More…

Posted in  Web Development   |     |  2 Comments »   |  delicious  Digg

August 24, 2009 – 11:28am Speedup: Profile your symfony app using Xdebug – Web Mozarts

Speedup: Profile your symfony app using Xdebug – Web Mozarts.

Haven’t tried this but hope to, soon!

Posted in  Web Development   |     |  No Comments »   |  delicious  Digg

August 20, 2009 – 12:24pm Getting a new developer started on an existing symfony project

Here is the basic process we use to get a new developer started on a symfony project. This flow assumes you already have created your symfony project and it checked into an svn repository somewhere, and that the developer is on a mac. More…

Posted in  Web Development   |     |  No Comments »   |  delicious  Digg

August 10, 2009 – 10:27am symfony configuration settings, “default” versus “all”

It’s hard to keep track of the difference between the “all” parameter heading and the “default” parameter heading in your security configuration files. The way to remember it is that “default” is just that — a value for when there are no other values set, including one for “all”. More…

Posted in  Web Development   |     |  No Comments »   |  delicious  Digg

July 31, 2009 – 12:28pm Springloops deployment with svn externals

We’ve been trying out springloops as a hosted svn solution for one of our smaller projects, and so far it does the job just fine. We are using it to host the subversion repository for a symfony project. We generally like to use svn:externals for the symfony library files themselves, this way it its easy to upgrade symfony, make sure every deployment has the necessary code base without having to worry about having PEAR installed on every server. More…

Posted in  Uncategorized   |     |  4 Comments »   |  delicious  Digg

July 13, 2009 – 10:37am Symfony: returning an array from app.yml

Sometimes its useful to return an array of values from app.yml. This is buried in the symfony docs so I thought I’d post it here just in case it’d help.

I’ve been using this technique to store a list of languages available on a site. As translations are ready for other languages, I add them to the list here and they automatically get pulled into the code in the appropriate places:
More…

Posted in  Uncategorized   |     |  5 Comments »   |  delicious  Digg