Key/value tables and how to use them in CakePHP 1.3

The key/value tables (EAV model) are a nice a approach to database modeling, when we need to store some arbitrary

Read more

JQuery in the CakePHP world (part 2 – is client side code all that great?)

(part 1) Now, how is this an introduction to jQuery + CakePHP?… well, let’s see in a minute. First, I’d

Read more

'required'=>true… the source of major confusion

In all the time I’ve been following cake on IRC (almost daily), it has become very clear that other than

Read more

'required'=>true… the source of major confusion

In all the time I’ve been following cake on IRC (almost daily), it has become very clear that other than

Read more

Set::merge() and dynamic validation rules

Here’s another trick with Set::merge()… Let’s say we’ve defined some basic validation rules in our Profile model, something like: var

Read more

notEmpty validation rule

With the recent changeset (https://trac.cakephp.org/changeset/7399) a new, ‘notEmpty’, validation rule is now available. As you can guess, it checks to

Read more

Validating a checkbox in CakePHP 1.2

In a few simple words: use the ‘comparison’ rule to validate a checkbox. To give you an example, let’s say

Read more

15 Essential CakePHP Tips

Note, this article was written a long time ago for CakePHP version 1.x … many of the points described here

Read more

Do I have any errors in my form?

A nice little trick to check if you have some errors in the view is to use the $session object.

Read more
%d bloggers like this: