In this post I reveal one of my tricks on how to leverage 3.x power in a legacy 2.x project. You might have already read on how to use some of the splits, like the ORM, in 2.x projects. Today…
Chronos – Let there be time
In PHP most know of DateTime class to handle date and time. At least with more modern PHP versions it is now not advised anymore to use the plain old date() and time() functions. The use cases – especially with…
Use isset() and empty() wisely
This is another part of the series "How to write better PHP code". Sometimes it is the small things than can make all the difference. In this case simply using the correct way of checking for variable content can avoid…
Developing CakePHP 3+ Plugins, it’s fun!
It is fun – and it should be! The days of CakePHP 2 plugins and how difficult it was to actually develop plugins are over. Back in the days (OK, I still have to do it once in a while),…
Avoid Yoda conditions
After blogging about the semantic importance of void as pseudo type I feel like I should also point out the nonsense of Yoda conditions. Those are still used quite a bit in the coding world, mainly in and around WordPress…
Return null vs return void
The other day I had a discussion about that, and why important open source frameworks like CakePHP use void in @return doc tags when void and null are code-wise totally identical. So here my reasoning why it is a good…
CakePHP Tips 2015
Most tips are for 2.x and 3.x as they have been applied to both versions. Complex radio inputs A while back I posted a tip about deep array options for select input form fields. With my recent path for 2.6…
CakePHP Meetups
About Meetups are a great opportunity to get in touch with other companies or people that use CakePHP. It is a good place to share experiences and find people even that might have similar interests or who could even join…
CakePHP 3.0 Migration Notes
Trying to migrate my CakeFest app for this year’s event, I made some notes regarding the upgrade process from 2.x to 3.x. I completed them during the upgrade of my Sandbox app to 3.0. And adjusted them after RC2 and…
CakePHP 2.6 – and the end of the beginning
I was first thinking about the title "and the beginning of the end" – but that sounded a little bit too Armageddon. In fact, 2.x will probably still be around for years – and at least 2.7 will still be…