CakePHP and NamedScope for DRY conditions

0

A behavior for CakePHP 2.x Background I stumbled upon this fork and SimpleScope. The latter has the disadvantage of redundancy in the scope conditions when used in multiple find configs….A behavior for CakePHP 2.x Background I stumbled upon this fork…

ResetBehavior and HazardableBehavior

0

ResetBehavior Reset is a new behavior I recently had to write to update some geocoded entries as well as records with processed titles/slugs – via beforeSave() – that had to…ResetBehavior Reset is a new behavior I recently had to write…

Localized number formats for forms

2

Often your language is not english and therefore the locale settings for decimals are not . for decimals and , for thousands, but the opposite, for example. If you do…Often your language is not english and therefore the locale settings…

Typographic Behavior and Typography Helper

0

For CakePHP Apps. What is the issue here? Typography has quite a few regional differences. In some countries/languages you use quotation marks like so: “Hello” // English, curly, often in…For CakePHP Apps. What is the issue here? Typography has quite…

Geocoding with CakePHP

28

Geocoding is a very powerful tool if you want to work with lat/lng, distances or just want to display a small map for your addresses. I use it in combination…Geocoding is a very powerful tool if you want to work…

Working with passwords in CakePHP

36

The basics Usually, this is already well known. But.. there are still developers who actually store the password unhashed. You always have to store user passwords hashed. You can either…The basics Usually, this is already well known. But.. there are…

Working with models

0

Since there is so much to talk about it here, I will cut right to the chase. We all know about "Fat Models, Slim Controllers". So basically, as much as…Since there is so much to talk about it here, I…

Behaviors in CakePHP

0

I didn’t use behaviors for the first 12 months with Cake. I regret it now, because the code is no much cleaner and easier to extend. Let’s make a test…I didn’t use behaviors for the first 12 months with Cake….