Magento. Ah Magento. The very name can get responses from web developers ranging from delight to running screaming out of the room. Love it or hate it, it is one of the most used commerce platforms on the planet. The dev team I work with was having trouble with a custom Magento module. It was designed with a feature switch that would allow for the module to be turned off. This was configured in the xml for the modules etc/system.xml and set in the admin config for the module. The possible values would be Yes or No to turn the module on and off. ThisRead More →

I was working on a legacy project recently and it involved moving old php code to a new server. The old code was on a server with php short tags enabled. Short tags allow for the <?php tag that starts a php file or php code block to be written as just <? , a shorter version. The primary issue with PHP’s short tags is that PHP managed to choose a tag (<?) that was used by another syntax, XML. As this is not standard practice I searched for a way to convert all of the php files in one pass. I  found this linux  commandRead More →