Aside from doc blocks, one of the most useful ways to document your test is by using the PHPunits –testdox-test flag. One of the wonderful things about this approach is that it allows you to easily keep your documentation up to date in a project where changes to the design and code are frequent. It […]
“Always write your code with the assumption that it will one day need to be extended even if the current specification or business logic does not make that apparent”. Based on my own experiences, this would be one of my top tips for anyone involved with a project or even just a bit of code […]
Among the many changes to Drupal 7 that theme developers should be aware of. Is the inclusion of the render() and hide() API functions available in the node and user templates. Quick explanation – Granular control & Forward compatibility Basically these two functions give you finer granular control over printing node content while at the […]
One of the great things about GIT. Is that you cannot really make a mistake or in other words any mistake you make is recoverable. Since most of us are humans we will often make mistakes in life and when using GIT. Unlike life, GIT is a good version control system that makes it possible […]
Be objective – make use of available tools “That kind of feels a bit faster than before hmmm?” Take an objective approach, you will need to identify the problem areas and then have a benchmark by which to test the results of any performance related changes you make. I suggest using the Firefox add-on Yslow. […]
Step 1: Implement hook menu Step 2: Implement hook_theme Step 3: Page call back function All the variables you defined in the theme_hook go through all the relevant logical processing here. Step 4: create your template page (tpl.php) Your template file must be placed in your module folder and must have the same value as […]
Sending a query string when redirecting a user using Drupal forms api To redirect a user to a new page when the form is submitted, you use the submit function like so. To send a url query along with this the obvious logical step would be to do the following Unfortunately this does not work […]
Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post. Here are some suggestions for your first post. You can find new ideas for what to blog about by […]