Starting out with Zend Framework

I am on a mission to get to grips with using the Zend Framework for building web applications. At MOO, the Zend Framework is used in it's more toolkit-like component library capacity and I'm also pretty familiar with its structure from previous work with Magento (although that always seemed to…

Snippet: Symfony & Propel - Queries with SQL functions

This is a super short snippet that I ALWAYS forget how to do! Often I want to build more complex where clauses with Propel Criteria which use SQL functions such as UCASE, LCASE, LEN and the date functions DAY, MONTH and YEAR. This is possible using Propel & Criteria, but…

Getting Rid of Non Breaking Spaces (&nbsp)

Have you ever tried to parse, process or preg_replace some HTML? Ever tried to do it when the HTML is UTF-8 encoded? Getting rid of white space can be tricky, here's a few tricks I've learned. I was playing around with debugging some HTML output from Symfony the other…

Snippet: Symfony Forms - Accessing the Object in a Form

Perusing my Google Analytics data shows up some interesting results. For starters the top search query which sends people to my blog is "symfony accessing object in a form". This has been consistent for several months, but there is no article on my blog which answers that question. I imagine…

Snippet: Creating & Debugging Complex SQL queries in Symfony

When working with large and complex datasets in Symfony, there comes a point where the ORM layer (Propel or Doctrine) causes more problems than it solves. Sometimes it's necessary to debug large SQL queries built using the ORM layer, and at other times it's appropriate to bypass the ORM layer…

It's been a Very Quiet Month...

It's now been over a month since my last post to this blog. I had promised not to ever let it get longer than 10 days, but this past month has been an exceptional circumstance. I've had a few enquiries regarding part 3 of my YUI Carousel article series, so…

Symfony: New Static Text Management Plugin

Generally, when I find something interesting I use twitter & delicious to spread the word, but this morning something in my RSS Reader got me excited enough to decide to write a blog post. Thomas Rabaix has hit the nail on the head with his latest offering: Wording is not…

Snippet: Symfony Forms - Definition List Form Formatter

Back in April I posted a Snippet on Symfony Form Formatters. Since then I've done a bit more work with them and thought I'd share my custom form formatter for displaying forms as definition lists. Forms are often marked up as unordered lists, but with their label-input structure I find…