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

You gotta love… Bindable behavior

Update: as of 05/18/2008 there is a new core Containable behavior, which is an evolution of a few previous behaviors,

Read more

A cleaner way to send emails

CakePHP 1.2 provides a very easy way to send emails using the built-in Email component. However, sending emails directly from

Read more

Use app controller to keep static list data

In the past I’ve often kept some data such as a list of states or countries in the DB and

Read more

Styling the paginator links

A little trick to make your paginator links look pretty… Add a ‘class’ option to your paginator links like so:

Read more

Default helpers

Just a little tip… In CakePHP 1.2 (at least the recent versions)¬†Form and Html helpers are included by default. Therefore

Read more

Goodbye vendor()

Looks like in the recent versions of CakePHP 1.2 the use of the vendor() method has been deprecated. Instead you

Read more
%d bloggers like this: