November 2011
1 post
September 2011
3 posts
August 2011
1 post
July 2011
4 posts
New Site Launch! Little Engineering Ltd →
This is our latest client project that we’re just wrapping up now. We made a custom Stock Management System in CakePHP 1.3 that we’re really proud of, and we think we’ve created a really nice look and experience for the user!
http://littleengineering.co.uk
2 tags
How to fix "Item was not deleted" in CakePHP 1.3...
When attempting to delete a record that has related records, for example a User hasMany Comments, CakePHP 1.3 would not delete the item in my baked application. It was giving me this error:
Item was not deleted
The problem is caused by the fact that there are related records. Some Comments still belongTo a User, so you can not delete the User without deleting the Comment. A simple edit to the...
June 2011
3 posts
Send multiple records AND any related controllers...
This isn’t something particularly hard to figure out, but I was using the wrong search terms to help me figure this one out so it took me longer than it should have. Hopefully this will be of use to someone else, if just to explain it slightly differently.
Recognise this snippet:
function index() {
$this->Controller->recursive = 0;
$this->set('controllers',...
May 2011
7 posts
A better terminal window than Cygwin and Windows... →
I’ve been using Cygwin for ages, and while it has some great features it has some simple failures in its interface and integration with Windows. You can’t simply full screen it, and copy and pasting requires messing with cmd.exe settings.
But I’ve just discovered mintty and it’s a joy to use. Here’s the list of features copied from it’s Google Code page.
...
reCaptcha and table based layouts
What based layouts? Table based layouts. I’ve been doing a small job making some modifications to a very old system that uses table layouts and non object oriented PHP. Frankly it’s a mess, and table layouts don’t just make it difficult to make layout changes. They were also the source of a problem installing reCaptcha that had me stumped for well over 2 hours!
Basically, if you...
Link: Change Apache’s document root to make... →
I’ve written a new blog post over at cenix.co.uk. Check it out.
I just started on a job to make some changes to a really badly made PHP job board system and came up with this solution. I had originally thought it could be done by using Window’s “hosts” file but that only supports IP addresses, so I couldn’t add a sub dir.