In part 1 I introduced some of the Authorize.Net gateways, in particular the Direct Post Method (DPM) gateway. I also introduced the OmniPay package that handles the DPM gateway. The code samples that follow will focus on DPM. To provide some context, I’ll bring in a sequence chart for this gateway used through OmniPay. What […]
Archive | PHP
Removing Author Details from Posts in WooThemes
Under each post in a WooThemes theme, is a box that provides details of the author. Some sites, especially business sites that just want to publish their own news items from time to time, do not want the author details appearing. So how do you remove it from a WooTheme? One method would be to […]
Laravel Multipart Registration and Reminder Emails
Laravel 4 comes with a password reminder and registration interface. The interface sends out reminder emails with unique tokens, so that the application can confirm the user trying to recover their password does have access to the email address they claim is theirs. Using the interface is easy. To recover a password, an anonymous user […]
Validating Flight Codes
Working on a portal that allows end users to enter their flight details for Operation Wallacea (OPWALL) trips, we were finding many details not being entered correctly. Since the portal was to take some of the load off the operations staff, having to double-check everything was not really saving any tine. The flight codes (or […]
SugarCRM CE Codebase Improvements Wishlist
Since SugarCRM CE has now been forked as SuiteCRM, given the uncertainly of its ongoing support from the company behind it, I thought it time to start putting my wishlist codebase improvements that will help make it a lot more maintainable and usable. These are simply things that I have found a royal pain to […]
A Primer on PHP Exceptions
The original article is here: http://nitschinger.at/A-primer-on-PHP-exceptions The article explains the structure of the exceptions very well, with this simple list summing up what many pages of PHP manual pages does not make very clear: [text] – Exception – ErrorException – LogicException – BadFunctionCallException – BadMethodCallException – DomainException – InvalidArgumentException – LengthException – OutOfRangeException – RuntimeException […]
Resizing of images in WordPress from within a template
WordPress will provide a number of resized images that sit alongside each image that you upload. These are useful to place into posts and pages, archive listings as thumbnails and in themes. Sometimes you may want a specific size for an image to appear in a theme template, but do not want to set it […]
Google Webfonts for Woo Framework
Bradley Charbonneau has put together a video that demonstrates this plugin in action. Thanks Bradley 🙂 WooThemes are a big WordPress theme provider. They have taken the lean approach of releasing themes that fit the needs of a lot of people, but may be rough around the edges, but work enough. Constant updates then fill […]
PHP Design Patterns
Some great examples here: github.com/domnikl/DesignPatternsPHP Sometimes it is difficult to get a handle on the implementation of a design pattern, no matter how many times you read the theory. This repository is a collection of some practical examples of what they look like. Being a github repository, if you want to add to the list, […]
PHP Backtrace on Errors and Warnings
It is sometimes useful to see back-traces of PHP execution whenever errors or warnings appear on a page. Often you would insert var_dump() statements to see what is happening and to narrow down the source of a problem (I know, not the ideal way to fix bugs, but it is a technique that is always […]