Categories
Archive
CMS PHP
Posted: 18th Sep 2009
As clients of Haloweb will know, we have been working with content management systems for the last 4-5 years, designing CMS powered websites and supporting them.
Well we are launching a new face to Haloweb which is CMS PHP - a very specific service that designs templates for a website, installs them in to any PHP based CMS, and provides ongoing support for £15.00 per month (or $20.00 /pm).
The site has just gone live, in fact it took us just 1 day to design, build and integrate in to Halogy thanks to the new Halogy Template Import tool (we'll cover this shortly)!
Tidy Domain Name with a Regular Expression
Posted: 27th Mar 2009
TECHY WARNING: This post has 'techy talk' be warned
We have just been working on Halogy and making a Javascript and PHP function that tidies domain names. We thought we would share it!
If you want to remove the 'http://www' from a string, or even just the 'www' or the 'http://' use this really nifty regular expression:
// get the old untidy domain string and tidy it
$str = 'http://www.haloweb.co.uk';
$newStr = preg_replace('/^(http)s?:\/+((w+)\.)?|^www\.|\/+/i', '', $str);
// and this will output your new tidy string!
echo $newStr;
CodeIgniter - Custom errors using the Form Validation class
Posted: 4th Mar 2009
TECHY WARNING - This post has techy-talk, be warned
Recently I've been using the new Form Validation Class on CodeIgniter and though overall it is much better than the previous validation class I found a gripe with it recently when trying to add custom error messages using the "validation_errors()" helper.
Haloweb is a web design company in Cheltenham.
Our blog features latest work, latest thoughts, screencasts and other musings on the world of web development. Enjoy!

