Category Archives: symfony

symfony APC cache and Memcache session storage

In a previous post I described some of the reasons why you would want to store your session data in an alternate location to temporary files on your server. I explained the setup of database session storage using Doctrine and how this would allow you to take advantage of storing session data in a database. [...]

Also posted in php | Tagged , , , | 3 Comments

symfony Doctrine database session storage

Sessions are normally managed by your server and depending upon how involved you get with the PHP setup you need never know how this data is stored. The default setup for PHP is to store session data in temporary files on the server. So why would we want to change how sessions are handled and [...]

Also posted in php | Tagged , , , | 16 Comments

Propel doUpdate update multiple records in a single statement

I’ve been very busy with a number of project launches lately. While working on a little problem today I re-discovered a little gem for use with Propel to update multiple rows in a single statement, rather than iterating through a collection updating and saving each object in turn. This task is simple in SQL but [...]

Also posted in php | Tagged , , | Leave a comment

sfPokaYokePlugin symfony Client Side Validation

The sfPokaYokePlugin (pronounced with the ‘e’ on the end e.g. poka-yoki). Simply put it is the use of simple mechanisms that stop mistakes being made. sfPokaYoke provides client-side form validation based on existing action.yml validation files. This validator will provide fully configurable inline errors on blur events and listed errors once the form is submitted. [...]

Also posted in JavaScript, None | 2 Comments