A while ago I was involved in a project that wanted to convert a legacy CakePHP (v1.3) app into a Rails app. One of the problems we had to solve was...
11 articles tagged 'cakephp'
CakePHP Asset Strategy - Part 2
Oct 28, 2013
The second part of an experimental CakePHP asset stragtegy loosely based on the Rails asset pipeline. Part 1 can be found here.
An apology
What can...
Custom Configure files in CakePHP
Jul 16, 2013
A little while ago I wrote about using environment variables to store various sensitive information in your application without revealing it in source...
Changing Password Hash for CakePHP Auth
Jul 5, 2013
Sometimes you need to use a non-standard password hashing algorithm with the CakePHP Auth component. In the 2.3.x branch, you need to write a custom...
CakePHP Asset Strategy - Part 1
Jun 7, 2013
This is the first part in my Asset Strategy series. Read the second part here..
Introduction
I’ve always hated how the css/ and js/ directories of...
CakePHP Behaviours
Apr 29, 2013
CakePHP behaviours are great. They’re kind of like Ruby’s mixins with a splash of the observer thrown in.
They are specifically for the model, and...
CakePHP Model::read() vs Model::find()
Apr 26, 2013
One of the things to be careful of in CakePHP development is the minor differences between these 2 methods and what they actually do.
The key thing...
I write most, if not all, of my client side code in Coffeescript now. While thats fine in Rails, which has a great asset management system, in other...
Add Environment variables to CakePHP
Mar 19, 2013
It should be common knowledge that you never put sensitive information into source control, but recently its been shown that many developers leave paswords...
Add 'on-the-fly' validations to CakePHP
Feb 15, 2013
Normally all the validation rules are stored in the model class in the validate var
<?php
public $validate = array();
However, sometimes you need to...
Redirect to where you came from in CakePHP
Jan 31, 2013
Sometimes an action or link needs to take the user back to where they came from each time rather than to an explicit location. When this happens CakePHP...