Programming, CakePHP and commentary from Britain.

Popular

CakePHP Livesearch
CakePHP Sessions
VBScript & Excel
VBScript & Oracle

Search

E-mail

kdobson@gmail.com

Subscribe

RSS 2.0

Viewing posts in the ‘CakePHP’ Category

CakePHP: Validating file uploads

An excellent and very readable piece on validating file uploads from within a CakePHP model. Provides the basic outline for how to handle the upload, as well as the more technical nitty gritty from within the model.

CakePHP Livesearch

This is an updated version of “CakePHP Livesearch” - published here in 2006. That version was designed for CakePHP 1.1, whilst this is a more polished and modern solution for CakePHP 1.2. The two tutorials are not compatible with each other due to changes in the framework. It is recommended that you stick with this one, and use CakepHP 1.2.

A while ago I wrote a tutorial covering how to get livesearch functionality working in CakePHP. A lot has happened since then - new versions of the framework have been issued, my knowledge of all things Cake, PHP & Ajax has deepened. Here’s hoping that my ability to communicate has, also.

There was a lot of positive feedback from the last tutorial which has spurred on a newer, revised tutorial. The contents of this post relate to Cake 1.2 (still in beta, but very usable). Whilst much of the steps are the same, there are a few subtle differences, and I have tried to clean things up a little better. So, without further ado…

Read the rest of this entry »

CakePHP Livesearch (CakePHP 1.1)

This is now an outdated tutorial. It has been replaced by a more polished version designed for CakePHP 1.2. Whilst the tutorial you’re looking at now still works in 1.1, you’d be best of upgrading to CakePHP 1.2. It’s much cooler.

Want to get a AJAX-ified live search working in CakePHP? So did I, but struggled to track down the relevant tutorials in English. There are two prominent tutorials out there; one by Marcus Jaschen, and another by Nio. Unless you’re well versed in German or Chinese (respectively) you might struggle to decipher these. I’ve adapted ideas seen in both tutorials and present one in plain (ish) English.

If you want to see what this looks like before getting started, try the demo.

Demo is offline at the moment, waiting to move it over to the new host, sorry!

Read the rest of this entry »

Understanding CakePHP Sessions

CakePHP is a PHP framework which is turning out to be most useful, and very flexible. I’ve embarked on a few little projects with it, and thought I would spread a little understanding with regards to the session component - as I struggled to find a concise set of examples to help me on my way.

Read the rest of this entry »