This is a question often asked. It’s also a question I had to find my own answers to – and to redefine those answers over time. So here are my five cents regarding this topic: Persistence: Passed params You use…
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…
Continuous integration with Travis and CakePHP
I must admit that I only recently started to take testing more seriously. In the past, I just created tests if too much time was available. But the larger projects get, the more just minor changes will most likely break…
CakePHP and Tree structures
Some of you might alread have worked with the TreeBehavior to generate nested categories or something like that. In most cases we just want to have two or three levels and some hierarchic structure using parent_id. But trees can do…
IRC CakePHP Channel
Introduction IRC (internet relay chat) is a text based chat system that is fast and yet powerful. Many online groups (as CakePHP) use it for semi-synchronous communication (unlike google groups, SO or asynchronous communication channels). I must admit that I…
CakePHP Tips
All new CakePHP tips collected over the last few weeks. Dispatcher execution order Tested on Cake2.3RC: APP/webroot/index.php CORE/bootstrap.php APP/Config/core.php APP/Config/bootstrap.php dispatchers defined in CORE bootstrap APP/Config/routes.php APP/Config/database.php controller and all the rest It is important to know that the dispatchers…
CakePHP and SEO
I do have to admit that in the past I never really paid too much attention on SEO (Search Engine Optimization) or how search engines treat my sites in general. This can be quite a pitfall and cost you quite…
CakePHP and HTTP/1.1
Most probably didn’t even know that Cake internally switched from HTTP/1.0 (cake1.x) to HTTP/1.1 (cake2.x). While most changes regarding the new specification are great, they can also break existing functionality, of course. New features With the new protocol there are…
User-Switch for CakePHP apps
What I call a user-switch is nothing more than a simple select box to chose a user from with which you want to be logged in as. Why This can be a very useful tool and time saver for multiple…
Localized number formats for forms
Often your language is not english and therefore the locale settings for decimals are not . for decimals and , for thousands, but the opposite, for example. If you do not allow localized input/output in your CakePHP apps it often…