Note: This is for CakePHP 2.x, for 3.x please see the bottom of the article. The CakePHP built in row based CRUD auth is way too powerful and way too slow and memory consuming. In 99% of all cases there…
Tag: CakePHP2
Serving views as files in Cake2
Actually, its not that different in Cake1.3. But as I just played around with it in 2.0, I will stick to that version for examples. How to start Skip this, if you want to cut to the chase. In your…
Freshly baked Cake2.0 tips
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…
More great news: CakePHP 2.0 stable is out!
After 1.5 years of development, Cake catches up with other frameworks. It is now as modern as most of the others while remaining the most powerful of all. Almost none if its automatic got lost during the process of rewriting….
Maximum power for your validation rules
I already postet an article about custom validation rules some time ago here. In this post I introduce some of my custom rules which come in handy quite often. For being able to use it in different projects I do…
Common CakePHP problems and solutions
Some questions are asked more often than others. The following I have read a thousand times. Maybe it’s time for some of those to be answered in detail. Editing own account/profile If you want users to allow editing their own…
Working with passwords in CakePHP
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…
Introducing two CakePHP behaviors
Today I want to introduce two new CakePHP behaviors. Jsonable Behavior This is not so new, of course. Already existed as a basic version in the Bakery. I enhanced it to work with more than just plain arrays and added…
Console for CakePHP
A Cake 2.x warning: Read the bottom part ("Hot Tip") – and do NOT add Cake to the system path anymore. Windows and CakePHP 1.x Nothing easier than that! 2 minutes and it works. I prefer WAMP (XAMPP sucks). But…