Jose Diaz-Gonzalez is a developer living in New York City. He currently works at SeatGeek

About
Change view: ListGrid

Quick Tip - Bring Out Yer Queries

Log your queries to find out what CakePHP is doing when it has 9 million blobs or is taking 34234 years to process.

Read More…

Quick Tip - Translating Model Variables

Translating CakePHP Model variables and validation rules isn't straight-forward to new developers. However, it is possible through the use of the class constructor.

Read More…

Quick Tip - Model::save() isn't Model::saveAll()

A very small example on when to use Model::save() versus Model::saveAll()

Read More…

Allow Subdirectories Apache

Example .htaccess file for allowing custom subdirectories in your CakePHP application under Apache

Read More…

Simple JSON Layout

Extremely simple JSON Layout for your application

Read More…

Cacheable Behavior

Cacheable Model behavior caches views pertaining to model records to the disk via a RequestAction hack.

Read More…

ResourceHelper

A general purpose helper to support random functionality that need not be in it's own helper. Has BlueprintCSS support, jQuert ASM HABTM, File displaying, jQuery Error displaying and Google Maps support.

Read More…

Hide Plugin Prefixes in Routed Urls

Hack on the CakePHP Router to hide the plugin prefix in connected routes

Read More…

Conditionally Load Javascript

Example of loading javascript files in 1.2 based on the current controller/action path

Read More…

Conditional Loading of Helpers

Example of conditionally loading helpers in a view

Read More…

Application Settings

Snippet of code to load application-level settings from the database

Read More…

Toggle Behavior

Toggle CakePHP Behavior for toggling boolean model fields in CakePHP

Read More…

Trackable Behavior

Trackable Behavior for CakePHP 1.2/1.3

Read More…

Commentable Behavior

Commentable Behavior for CakePHP 1.2

Read More…