You can see that I have been quite busy by the huge amount of blog posts the last couple of weeks 🙂 Well, except for my 2 weeks of holidays right now. Currently I am in Dubai. So, before hitting…
Tag: CakePHP
Interesting (CakePHP/PHP) links – 2013
PHP5.5 Try/Catch/Finally is a nice article about upcoming 5.5 features – and how to use them wisely. Enhance your select form fields Chosen is a beautiful addon for your select dropdowns, especially if you use them to filter to search…
More cakephp 2.x infos and 3.x notes
Behaviors I just recently found out that the attach() and detach() methods I have always been using seem to be deprecated (or at least only available for BC) – and that one should probably use load() and unload() from now…
Cake Bake: Custom Templates “Deluxe”
You might have read my almost two year old article about custom bake templates. Much changed since then. In Cake as well in my user-land code. Note: The "setup" bake theme is written for 2.x but can easily be backported…
More interesting links
This week I have only a few links to offer 🙂 PHP5.5? What-PHP-5-5-might-look-like.html Periodic Table A pretty geeky site shows the number of elements used on a website as a periodic table: periodic-table. Move over the elements with your mouse…
CakePHP now fully MVC
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%…
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…
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…
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…
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…