Since it is new years eve, I don’t want to start a complete new chapter. So I will write one last post this year with some more general topic. And yes – I find it so interesting that I have…
Year: 2011
TinyAuth – The fastest and easiest authorization for CakePHP
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…
Tools Plugin – Part 2: Contact Form
I want to show how easy it is to make a solid and universal contact form in Cake(2). The full code can be found in the github rep of the Tools plugin. Model The most important part first: We need…
Unit-Testing Tips for 2.0 and PHPUnit
Quite some time ago I wrote about Unit testing. But that was still in 1.3 and with SimpleTest. A lot has changed since then. Execution Order The documentation wasn’t all that clear about it. So I tried it with the…
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….
Finally – SVN becomes more GITish
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
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…
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…