Twig template files are very much like Jinja files, so we can use Vims inbuilt support to highlight Twig files with the Jinja highlighter by adding the following line to vim.rc:: au BufRead,BufNewFile *.twig set syntax=htmljinja This also highlights th...
    Today I needed to create a custom validator for Symfony 2, I began by reading and following the instructions in the documentation here. However at time of writing this documentation is outdated and what is more we use annotations to define validation, an...
    This blog post will attempt to describe how to use @Annotations to dynamically add mapping information to your model. In our case we are adding a @DataInheritance flag to many classes: /** * @orm:Entity * @orm:Table(name="page") * @ylly:DataInheritan...
    Using a bash for loop in the shell is an extremely powerfull way to apply global changes to code, and has proved essential for me when upgrading Symfony2 PRs :) But I always forget the syntax, so I am sharing the wealth. Search and replace in matching fi...
    On using the Symfony2 profiler I was a /little/ disapointed with the lack of detailed timing information (e.g. time taken to render templates, time taken on the database, etc), but then I remembered how little value these timings has in Symfony 1.x — they...
    I have finally finished a useable application for logging my training times .. I wrote a Trainer 3 years ago which has served me well, but it was only for running so rather than upgrade that one I thought I would rewrite from screatch using Symfony2 and M...
    I have just finished updating my Symfony2 Trainer application to use Twitter Bootstrap. I have never used Twitter and probably never will, but that is beside the point. Bootstrap is the thing that I searched the web for everytime I started a new applicat...
    This blog post is intended to introduce the concept of the Self Hosted Bundle Test Application, hereafter referred to as an SHBTA. This is a concept made convenient by the CMF Testing Component (which is a bundle currently only for the CMF) but which can...
    Part 1 Creating a Basic CMS with the CMF This post will show you how to create a basic CMS from scratch using the following bundles: RoutingAutoBundle DoctrinePhpcrAdminBundle MenuBundle The resulting system will be equivalent to that provided by the...
    I have recently been working on the Gush project, which is a CLI tool based on the symfony\console (link) component to improve the workflow for GITHub project maintainers. It has many of commands which share similar feature sets. A recent problem was how...
    Updated 2014-05-16 15:26 I have been staying in a youth hostel for the past 3 months. The youth hostels website was destroyed some time ago, and they are working from an HTML cache. They asked me to take the cached pages and integrate them into a CMS. I...
Recent Posts

Psi Grid Component (a data grid)

I spent the last three months or more working arou...

Bundles: Service Providers, Definition Factories and Tags.

In this post I will talk about how we have employe...

PHPBench 0.11

PHPBench 0.11 (Dornbirn) has been released, and it...
Twatter