CakePHP Tips Winter 2016

2

This is literally my last blog post for the year 2016 🙂 Use the right DateTime typehint If you are passing DateTime objects around in CakePHP, they are usually Chronos…This is literally my last blog post for the year 2016…

Emoji and CakePHP

0

You might think: Why do I care. Well, you would be surprised – but pretty much any website with at least one form on the page will be affected here….You might think: Why do I care. Well, you would be…

CakePHP and connecting to GitHub API

0

I had to write a small tool to automate releasing certain GitHub repositories, and for that to authenticate I had to connect to GitHub API. The integration wasn’t super-easy as…I had to write a small tool to automate releasing certain…

CakePHP Tips Fall 2016

0

Always use proper version check method Be aware of version checks that are using the inferior and even wrong </> comparison. This can lead to wrong conditions with higher minor…Always use proper version check method Be aware of version checks…

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…In PHP most know of DateTime class to handle date and…

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…This is another part of the series "How to write better…