When a user signs up to your website, trying to find a username that is not already in use can be a real pain and could cause them not to sign up if they are repeatedly presented with an error. To solve this you can use a simple bit of JavaScript to check if their chosen username [...]
Related posts:
Something I found out recently when I updated the cakePHP core files, when accessing my 1and1 hosting using ssh I kept getting errors when using the cakePHP console. The problem was caused by the fact that by default 1and1 uses PHP 4 for the command line. This cannot be altered using .htaccess, however after a [...]
Related posts:
Recently I came across a problem, where I wanted to show a select box for zones in an address (counties or states etc.). I have a list of zones in my database and to put them all in one box would have been unusable as the list is in excess of 2000 zones. My solution [...]
Related posts:
I’m sure there are many ways of doing this, but recently I finally got round to figuring out how to update multiple records at a time. When I started out all I wanted was to give all the selected records the same value for one database field, so the first thing we need to know [...]
Related posts:
Ok, so we all know how useful those flash messages are that cakePHP throw at us, “you’ve done it wrong, try again”. Well as much as I like them I don’t want to be reminded of my error untill I go to a different page. The answer is to make them disapear. Using the YUI [...]
Related posts:
The aim of this tutorial is to be able to pull data from your database and output it in a nice shiny data table. Although the cakePHP paginator does this perfectly well, I have been using YUI and I am not a fan of the prototype library. The YUI Paginator control is able to send [...]
Related posts:
I have been dipping in and out of using a great open source Rapid Development PHP Framework called cakePHP for the past two years. Developing with this framework has meant I have been able to create functionality in websites a lot quicker and easier than I could ever have done without it. This was by [...]
No related posts.