Freshly baked Cake2.0 tips

9

With 2.0 there are many new features available. Some of them I want to introduce here. Using the console for 2.0 I once wrote about how to use the Cake1.3 console. The 2.0 shell is not so much different. The…

SVN

Finally – SVN becomes more GITish

0

The change we all had waited for soo long. SVN becomes more GITish With the release of all new 1.7 the thousands of .svn folders are finally history! Only a single .svn file in the root folder remains. Yes, most…

Working with virtual fields in Cake1.3

1

In earlier versions of CakePHP we had to use Behaviors like "MultipleDisplayFields" or whatever. With $Model->virtualFields it is now possible to natively use find() methods combined with virtual fields. The nice thing about it is, that the pagination can 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 use the still very common sha1 method (which is the…

Gravatar CakePHP Helper

1

An independent Avatar-Generator 90% of all blogs out there use gravatar. Therefore you can easily use it with most of your users’ email addresses. But even if you don’t want your users to use their gravatar image you can still…

Forms and redirecting

0

Redirecting in your CakePHP app My CommonComponent now contains three redirecting methods: /** * @param mixed $url * @param bool $useReferer * returns nothing and automatically redirects * 2010-11-06 ms */ public function autoRedirect($whereTo, $useReferer = true) { if ($useReferer…

Useful CakePHP shell scripts

2

Today I want to present some useful shell scripts I often use. Hopefully you find them useful, as well 🙂 Where to put them Drop shells in a vendor folder of your choice (either app, core, or plugin), for instance:…