Earlier I wrote about some PHPUnit tips around Cake2. At that time the old SimpleTest testing framework had just been replaced by PHPUnit. So everything around this new framework was fairly new – especially to be. I manually installed/downloaded the…
Author: Mark
Cakephp and Googl Url Shortener
This can come in handy if you send out tweats, sms or other texts which should stay as short as possible and could contain urls. But it can also be used for html emails to track visitor clicks (using the…
Geocoding with CakePHP
Geocoding is a very powerful tool if you want to work with lat/lng, distances or just want to display a small map for your addresses. I use it in combination with my GoogleMaps Helper to display a dynamic or a…
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…
Schema reference for table less models
If you ever need a table less model with only some manual schema information (mainly for validation and form helper to work), you might find the documentation a little bit incomplete. There are more than just those types available. Here…
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…
Helper? Component? Lib? CakePHP2
Note: For 1.3 see the old article on this subject. I want to outline some ideas on how to chose the appropriate class type if you want to add some additional feature to your cake app. For a beginner it…