PHP

Chronos – Let there be time

0

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…

PHP

Use isset() and empty() wisely

0

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…

PHP

Avoid Yoda conditions

5

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…

PHP

Return null vs return void

0

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

0

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

0

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

2

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…