Christopher Shennan's Blog

A day in the life of…

Browsing Posts in PHP

A few months ago I posted an article taking about how to get the raw SQL from a Doctrine Query Object but with the release of Symfony 1.3 and Symfony 1.4 it would appear that the code no longer works.  As a result I’ve updated the code to work with Symfony 1.2 – 1.4 and [...]

csNews Pro

No comments

It’s taken me a while but I’ve finally managed to create the “My Projects” section started although in all likelyhood I’ll not have much time to devote to my projects. I’ve started off by resurrection an old project that I worked on while I was self employed as Design2Host Ltd.  csNews Pro (formerly V-Desk Newsletter [...]

I am often importing data into a symfony project from an existing site or a CSV file and re-writing this data into the fixtures.yml is usually too complicated or time consuming so I end up writing bespoke import actions. While I am writing these actions I often find that I have to delete the contents [...]

This has been updated to work with Symfony 1.3/1.4 – Please go to the updated article: Raw SQL from Doctrine Query Object – Revised As my use of Symfony is increasing I find myself frustrated that there doesn’t appear to be an easy way to get the raw SQL from a doctrine query object so [...]

How many times have you searched for the answer to a problem in Google to find nothing but forums with people who have the same questions but no solutions posted even though the question was raised months, even years earlier? If you post a question and no-one managed to provide you with an answer do [...]

Last week I was working away in the office at Line Digital on our latest Symfony based project when our project started giving us a strange error similar to:- Fatal error: Uncaught exception ‘sfConfigurationException’ with message ‘Configuration file "/usr/lib/php/symfony/config/config/core_compile.yml" does not have a registered handler.’ in /usr/lib/php/symfony/config/sfConfigCache.class.php:101 Looking into this a little closer we found [...]

One simple thing I keep having to do over and over again is to display the name of the month for a given date.  Normally I have opted to use the first solution that comes to mind which is creating an array with all the month names in it and then when I want to [...]

A few weeks ago the company I work for was changing the server that several client sites are hosted on and this included a website built up using the eCommerce package magento.  All of the migrations went ahead without any problems with the exception of this magento site and it had a couple of us [...]

A few weeks ago I posted a blog entry about problems with Zend clearIdentity() with IE7 and Chrome but I’ve since found that the Zend Framework was not at the root of the problem.  After discussing the problem with a colleague we found that there was a line in the bootstrap.php file like:-

Today I have found a new nemesis in the form of the Zend Framework!  I have been working on a client website that for some reason just will not allow them to log out properly when they’re using IE7 or Google Chrome but it works fine in Firefox (please don’t post the “get a better [...]