Monthly Archives: April 2009

Basic forms with Symfony

Our goal is to create a little crud that contains 4 fields id (auto increment integer) name (varchar 50) value (double) type (0 or 1) What I will explain is how to change your fields in the form after creation … Continue reading

Posted in php, Symfony | Tagged , , | Leave a comment

Symfony Form: unsetAllFieldsExcept()

When creating forms in symfony which extends from a Base (ORM) class, you sometimes do not need all fields that Propel/Doctrine generates for you. If you want to remove them you have several ways to do so. 1. Unset the … Continue reading

Posted in General, php, Symfony | Tagged , , | 5 Comments

sfWidgetFormInputCheckbox unchecked bug

Ever tried to create a Symfony form with a check box input field, which by default should be unchecked ? No ? Well read on because it’s not that easy . This would be the code to print a check … Continue reading

Posted in General, php, Symfony | Tagged , , , | 13 Comments

Comments to the max

I was wondering around on the big wide scary web and saw a lot of badly written comment for code so I thought it shouldn’t be bad to give a little overview on how comment should be written, at least … Continue reading

Posted in General, Languages, php | Tagged , , , | Leave a comment

A few helpful PHP date methods

For a lot of people dates in PHP are an issue, and the PHP functions aren’t sufficient enough to do all converts you need. Therefore you find a few easy PHP date conversion methods. Feel free to add your own … Continue reading

Posted in General, php, Symfony | Tagged , , , , | 8 Comments

PHP DOMDocument: Convert Array to Xml

Recently I start working on an export module to invoice applications. One of them uses a very simple xml structure (simple nodes without attributes etc.) and therefore I wanted to create this xml also in a very simple way: from … Continue reading

Posted in General, php | Tagged , , | 16 Comments

The grass is always greener… in the GooglePlex

Isn’t it always better to work for another company then the one you are working for now? The grass is always greener at the other side of the fence isn’t it? Well ironically enough, this is completely true for everybody … Continue reading

Posted in General | Tagged , , , , | 5 Comments

Useful Propel criteria methods and constants

I’m working with criteria quite often lately and must say it is a handy way of query writing. The only problem I have with criteria is that I don’t seem to find a simple overview (list) of the most important … Continue reading

Posted in Framework, General, mysql, Symfony | Tagged , , , | 6 Comments

Interesting People – part 1: Fabien Potencier

Nothing better to get inspiration from then a nice cup of Nespresso in the evening. We are working with Symfony for a few months (years) now and I was wondering earlier this day: Who are the guys that are able … Continue reading

Posted in General, Symfony | Tagged , , , | 3 Comments

What browser should you use?

Over the years we have tried to create websites that are displayed correctly on every browser, and sometimes we did manage to get it correct. But it isn’t that easy to get your application configured and coded so that all … Continue reading

Posted in General, html, Javascript, Jquery | Tagged , , , , , | Leave a comment