Blog Archives

Cakephp Data Validation How to Avoid Duplicate Records with isUnique

Let’s say you build a CakePhp app to allow a used car dealership to edit their stock of vehicles. It would be helpful if it the validation rules when adding a new vehicle prevent a user from entering the same

Posted in Cakephp

Cakephp Session Handling Errors

Aaaaaargh.  If you see this when you put your cakephp app on a shared hosting environment: Please verify that the current setting of session.save_path is correct Here’s the fix that worked for me: Look in  /app/Config/core.php and you will probably

Posted in Cakephp

Cake Error Fixes – Fun with Cache Folders

Making a note of this because it has been a pain in the bum to find a fix. If you move a Cakephp 2.0 website or it stops running for whatever reason try deleting everything inside /app/tmp/cache  then re-create the

Posted in Cakephp

Cake Error Fixes – unbable to write to File cache

  If you see this when running a CakePhp 2.0 web app: cakephp 2.0, Warning: _cake_core_ cache was unable to write ‘cake_dev_en-gb’ to File cache Check that the folders  –  /app/tmp/cache/models,  /app/tmp/cache/persistent – exist and have the correct permissions.  

Posted in Cakephp

Installing Latest version of Cakephp on Ubuntu

Found this really useful article  http://nerdviral.wordpress.com/2012/10/02/install-the-latest-cakephp-on-ubuntu-server-12-04-lts/ – Explains how to clean up old versions as well.

Posted in Cakephp