April 2007
3 posts
Global Query Conditions
I had a need to define a query condition that was available globally in cakePHP. I needed to make sure that I had it when any model called for it. I’m getting into building Fat Boy models now (like chris) and decided that this was one bit I could let leak over into the beforeFilter in the app_controller. So, when a person hits any page on the site, my app_controller makes sure the viewer of the...
Apr 29th
International Cake
I am working on an application that will be launched in a number of languages. I wanted to do something fun for the language settings, so I decided that the languages would be auto-detecting, user-changeable, and served via automatic sub-domains. So, english will be en.domain.com and french will be fr.domain.com. What follows is my attempt at making that happen within cakePHP. There may be...
Apr 9th
Aligned Labels
Luke posts on form labels, speed, and use. Top-aligned labels tend to reduce completion rates the most for familiar data (i.e. address, credit card, etc.) because they only require a single eye fixation to take in both input label & field. Top-aligned labels also work well for forms that require localization or long labels as there is plenty of horizontal real estate to expand/contract...
Apr 2nd