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…
Year: 2012
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…
CakePHP Tips – Winter 2012
Some more tips I gathered the last couple of weeks and want to share with the (Cake/PHP)world 🙂 Jquery and CakePHP FormHelper::radio() Usually you would use var value = $('input[name=fieldName]:checked').val(); But since CakePHP uses name="data[ModelName][field_name]" generating the form fields you…
Typographic Behavior and Typography Helper
For CakePHP Apps. What is the issue here? Typography has quite a few regional differences. In some countries/languages you use quotation marks like so: “Hello” // English, curly, often in texts (1) «Hello» // French, brackets, often in texts (2)…
Namespaces in vendor files and Cake2.x
Have you needed any vendor files (third party libs) that are already written in PHP5.3 and use namespaces? You might find out that they usually don’t work out of the box. The included class is not the problem, but all…
CakePHP and PHPUnit
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…
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…