There are some handy cake functions you might not have used or even heard of, yet. Debugging Most beginners use print_r() to debug variables. Without <pre> tags its really hard to read, though. Use pr($var) or debug($var) to debug this…
Month: August 2010
Development vs. Productive Setup
If you want to deploy your cakephp app you usually have to change a few lines of code. But we want to minimize that. My example setup: development: Windows (>= Vista) productive: Linux (Debian) Database Setup Create a library file…
How to implement Captchas properly
What is a captcha? They protect forms on websites from spammers and bots (@see Wikipedia for details). The main idea: Display some kind of code a human can easily read and submit but a computer can not. How NOT to…