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 with generation of a module. So we start with a clean module that contains 1 action class and 3 templates (new, edit and index) and 1 partial (form) that is included on the new and edit template.
We created this module not by hand but with the very easy command: symfony propel:generate-module.

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 an array.
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 in the whole world, except for the guys working at the GooglePlex… For myself of course, as my boss sometimes reads my blog, this is not true; I’m very pleased with the job I do
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 to produce such a nice piece of software? You got to admit it that the framework these guys created is a masterpiece, must be a shitload of work and it is still growing on a daily basis.
Comments to the max
Apr 22
Posted by van Rumste Kenneth in General, Languages, php | No Comments
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 how I think it should be written.
Not all comments can be written in the same way and not all comments can be read by other programs but I personally think the Java comment is the most readable one, and (huge advantage) can be read by the Javadoc processor. When writing in PHP this is done in the same way as PHPDoc is an adaptation of Javadoc.
So write your comment like this:
Read the rest of this entry »
Tags: code, comment, javadoc, phpdoc