You are browsing the archive for Web Development.

Royal Mail Postage by Weight – Zend Framework Module

July 18, 2011 in Zend Framework

For a recent project I have had to calculate weight based shipping costs. Before I had this as a db table, but that became a mess to manage.

So I’ve created this small shipping calculator. It’s set to use KG in weight and prices inclusive of vat taken from the Royal Mail’s 2011 Prices.

TinyMCE and Zend_Auth – Simple Authentication checking.

March 11, 2011 in Zend Framework

I’ve been using TinyMCE for a good long while and wanted to integrate their fantastic FileManager plugin and ImageManager plugin’s (Both Commercial) in with my ZF client site. This is relatively easy, the easiest way is to create a controller action and a iframe in the view that points to the location of the imagemanager [...]

Don’t use IsValid in your Doctrine Models – a warning

September 9, 2010 in Doctrine, PHP, Web Development

Recently for a project i’ve been making heavy use of Doctrine. In one of the models I had a method to check to see if the object was valid under a certain set of conditions. I named this function isValid .. and it had 2 params. Little did I know that this was actually overriding [...]

Active Module Config V2

June 18, 2010 in Zend Framework

A brand new version of my previously Released Front controller plugin for Zend Framework.

HTML5 Data attributes and jQuery’s .data – pairing made in heaven

May 12, 2010 in jQuery Plugins

UPDATE jQuery 1.4.3+ now does this in core. No need for this plugin! I really like the idea of the data-* properties in the spec for HTML5, unfortunately they’re not supported directly by any browser it seems yet; even jQuery 1.4.2 doesn’t really support them (due to the non-browser support I guess). Anyway, I really [...]

Per form stylesheet with Zend_Form

March 1, 2010 in Zend Framework

I needed to have certain form styles attached when a form is in use. I didn’t want to do this from the controller each and every time as it was really was only to do with the form and I might want to use the form with it’s own stylesheet in other places.

jQuery Keyz Plugin

February 24, 2010 in jQuery Plugins

The purpose of this plugin is to easily facilitate the end user to create and hook key presses for their own use. Usually you would need to know what key links with which keycode etc. Usage It’s as easy as these steps: Include jquery – either from CDN or local source Include jquery.keyz.js call the [...]

Integrating PHP CodeSniffer with Activestate Komodo Edit

February 15, 2010 in Web Development

I’ve recently been looking into standards of code and how they would apply to myself and my code. To enable this, I’ve recently installed PHP_CodeSniffer and for a few days been using this on the command line.. which by itself isn’t bad, though I really wanted to have something inside my editor of choice (happens [...]

Active Module Based Config with Zend Framework

January 4, 2010 in Zend Framework

I’ve recently taken to using Zend Framework for a project that I needed to bring up to date. I won’t go into the pros and cons of choosing a framework as there are many much more qualified people who have done a much better job of this subject than I would or could. So Instead [...]

PHP – Chmod-ed to Windows hell and back

March 10, 2009 in PHP

Today has not been a good day. With various things going wrong, I was please that I had got the file upload code done for a site i’m working on. All I needed to do was make sure that the file had the right permissions and then edit it via GD (via an image editor [...]