Yeah 🙂 I was waiting for this day for quite a long time. And pretty happy that my proposal from last year is finally in the live code. Cake2.1 is now fully, really and completely MVC – and officially 200%…
Tag: CakePHP2
Auth – inline authorization the easy way
I wrote a wrapper class to make inline authorization easier. Often times you want to check on certain roles inside an action or view and depending on the result display specific content or execute specific code. As an example we…
Introducing the EmailLib
This is a good example of how useful it can be to even extend some basic core classes to enhance them and fit them to your needs. In this case we extend the CakeEmail Utility Lib class and add some…
Some new crazy (Cake)PHP tricks
Crazy – because these tips are not used that often probably. But for some rare occasions they might come in handy. Inserting some rows into an array $array = array( 'one', 'two', 'three' ); $newValue = 'one-point-five'; //with 0 as…
Bitmasked – Using bitmasks in CakePHP
Introduction Based on Mark Story’s Post about this and the need in one of my apps for this lead me to believe that a behavior would be most appropriate to handle this. So I gave it a try. There already…
Dynamic database switching
Some might remember my old post about development vs. productive setup. It was mainly about how to switch dynamically based on the current environment. This can be useful if you want to have a single DB config file which will…
Spellchecking with (Cake)PHP
I wrote some cake1.3 libs years ago which would request google’s spellchecker API. This is great for small and unregular lookups. But as soon as you need to use it more excessive an internal server solution is not only much…
Qlogin – Quicklogins für CakePHP
Have you ever thought how nice it would be to send emails with an url that automatically logs you in? Especially for a messaging system this can be quite handy: One click in the notification email and you can answer…
More persistent sessions in Cake2.x
This has been an issue for me way too long. I always hated the fact that users are logged out almost every few hours. Compared to other sites on the www it was ridiculously short, no matter how long you…
New year, new cake version – 2.1
The new version 2.1 is almost fully backwards compatible. The migration guide from 2.0 to 2.1 can be found at book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html New stuff for the upgrade shell I used this chance to enhance my version of the upgrade shell and…