Variadic functions in PHP5.6

PHP 5.6 comes with some new features. This post is to preview the Variadic functions This new feature looks as follows:

Argument unpacking in PHP5.6

PHP 5.6 comes with some new features. This post is to preview the Argument unpacking.

Code Sign error: Certificate identity in Xcode

When my certificate identity expired recently, I had to renew it. This was completed successfully, but when I tried to build/run my new iPhone application, I got the following error: Code Sign error: Certificate identity ‘iPhone Developer: xxxxxxxx’ appears more than once in the keychain. The codesign tool requires there only be one. Ok. So…

fputcsv() function with SplFileObject

The SplFileObject is a replacement object oriented approach for php filesystem functions. Not all of the functions are part of the SPL classes. fputcsv() is only available from PHP 5.4 onwards. However, it is not too hard to replicate the function if you are not using PHP 5.4. Here is how I implemented it, short…

Symfony 2.1 Console Cheat Sheet

Symfony2 has many useful command lines to help you. The command lines can assist you with Symfony2 development and saves time when you are coding. I have listed below a few of the commands that I know of with details of how they can be used.

StackOverflow Answers (WordPress Widget)

Widget to display a summary of answers you have posted in StackOverflow. It will display the question’s title, the answer’s score, and the time the answer was last edited. You can limit the number of questions displaying and sort the list based on: Highest score. Oldest answer. Newest answer.

New Magento Extension "Moo_CloudZoom"

Overview I have released a new extension for the Magento E-commerce system. The extension is a replacement for my first extension “Magento JQZoom”. The new extension has more features including: Smooth zoom movement. Define the dimensions of the zoom window. Define the position of the zoom window. Z/Y pixel spaces for the zoom window. Show…

Magento Tips

Design customisation for CMS page: Adding custom CSS class name in the body tag Remove a block area_name: is the name of the section in a page layout. For example left, footer, header, etc…. block_name: is the name of the block you want to remove. For example, breadcrumbs, topMenu, etc….

Custom Module Bootstrap Class

In my Zend Framework application I wanted a bootstrap class for every module. Each bootstrap class will instantiate confirguration specific for each module. You do not have to add a bootstrap class to a module if no confirguration is required for that module.

On fly elements in Zend_Form

How to create and modify elements in Zend_Form on fly? Lets say we have a form that creates a customer address. The form has the following fields: Country (select element) Street name (text element) Region/State (text element) City (text element) Postal code (text element) When the user selects a country, we want to check our…