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:…

Bitcoins and CakePHP

2

When I started to try this out with a friend I was surprised how few resources there are. Especially in the CakePHP sector. Bitcoins are not very common yet – although quite promising: anonymous, not refundable payments without any transaction…

Very useful CakePHP Code Snippets

1

A small collection of useful Cake Snippets for all projects made with Cake. First of all: Keep it DRY If you have several projects I recommend extending vendor classes. require_once(VENDORS.'my_model.php'); class AppModel extends MyModel {} Same for AppController, AppHelper, bootstrap…

Storing and managing accounts

0

I get questions like "What is the svn address again" or "What was my password" all the time. You could write them all down somewhere on paper. But copy-and-pasting them is so much easier and faster. So we end up…