27
Mar
2010
Symfony admin generator with style
Symfony, Programming

I recently started a new project using Symfony 1.4 and ran into a problem where the modules generated by the admin generator didn't have any style or pictures. These assets are in the web directory of the sfDoctrinePlugin (or sfPropelPlugin if you still use that) but Symfony can't find them there automatically. To make this work you need a symbolic link inside your web directory. Luckily Symfony has a task for this so you don't have to create it by hand.

Here is how we create the needed symbolic link:

./symfony plugin:publish-assets

Comments (2)
       
31
Jan
2010
PHP's missing array sort function
Programming, PHP

During my daily work I often find myself sorting results of an array. Most of the time it is not your regular alphabetical or numerical sort but something more complicated. I created a simple function for it that did save me some time on various projects.

Read the rest of this post »
Comments (8635)
       
27
Sep
2009
Twitter-like notification using jQuery
Programming, jQuery, JavaScript

For a personal project I needed to come up with a way to notify the user of the fact that a form was submitted successfully. I could have done an easy static bar or some nasty pop-up but then I remembered the way Twitter uses notifications. When you, for example, save changes to your profile a bar slides in from the top of your screen and it slides away again after a couple of seconds. I decided to build something like it using jQuery.

First of all check out the demo of what we are going to make here.

Read the rest of this post »
Comments (7)
       
16
Sep
2009
Formatting a date in Symfony
Symfony, Programming

Symfony has a really handy date helper which you can use to do all kinds of fancy things with dates. One of the functions I use a lot is the format_date() function. Because it has quite a lot of options which are not documented in the Symfony book I always find myself browsing through the source code looking for the right parameters I have to use to format my date. In this post you will find a complete overview of all the options that the date helper has for your, and my, convenience.

Read the rest of this post »
Comments (6790)
       
09
Sep
2009
It's on(line)!
Personal, Website

Hello and welcome to my "weblog". Finally, after not having a decent personal site for some time, I managed to finish up the design and fix the last bugs. I released it today because I thought 09-09-09 is a nice date for a special occasion like this ;)

I made this site mainly as a mnemonic for myself where I can document all sorts of stuff which I find important, substantial or simply worthwhile to write about. Due to my background, I have deep interest and inclination towards beautiful designs and interesting technical bits and pieces so you will mainly find posts about those topics.

Check back soon for some more useful information!

Comments (3)