40 signs you really are a lousy PHP programmer 

Disclaimer: This collection was published a few years ago on my blog, it was met with heavy criticism about featuring micro-optimiziations which have little to no effect at all compared to other things you can do which was then and is still today very true As this was copied & published on a few hundred [...]

PHP Evolution Philosophy 

I do not think much of a man who is not wiser today than he was yesterday. – Abraham Lincoln Sometimes, reflecting on mistakes from the past – you wish you knew then what you know now. Here are a few of my PHP developer truths, learned the hard way by being young, stubborn and [...]

The one thing you need to know about building CMS themes 

Does it support intelligent body classes? It will make your theming life so much easier, it’s absolutely ridiculous … Read about the WordPress version and the benefits of using this concept for theming purposes here: http://codex.wordpress.org/Template_Tags/body_class WordPress (2.8+): <body <?php body_class(); ?>> Drupal (originally from Zen Theme, since Drupal 6 in core): <body class="<?php print [...]

Symfony 2 Preview – It has never been so easy 

The Symfony PHP Framework has, in the past, alienated a lot of developers solely because it was quite a hassle to setup on shared hosting or a local server environment. What’s new in Symfony 2.0? Requires PHP5.3.2+ Doctrine 2 (Active Record is replaced by Entity Pattern, completely rewritten codebase for PHP5.3) PHPUnit for testing, lime [...]

Create your first simple Drupal 7 module 

Create your first Drupal 7 module with the following steps. Create a folder called helloworld in sites/all/modules/custom Create a helloworld.info file Create a template file page-helloworld.tpl.php in your theme directory Enable your module at http://domain.com/admin/build/modules Visit http://domain.com/helloworld This belongs into your helloworld.info file ; $Id$   name = helloworld description = Reinholds Hello World module [...]

Drupal 7 Themes – Browser specific CSS 

In Drupal 6 you had to target IE specific CSS files by adding lines to your page.tpl.php or use an additional module which allows you to target browsers inside your theme.info file. In Drupal 7 however, the recommended way is by using the use drupal_add_css() function in your template.php file. function mytheme_preprocess_html(&$vars) { drupal_add_css(path_to_theme() . [...]