This post is for all that are using CakePHP and anything below PHP 7.4. In general The main reason here is that the last version of the PHP 7.x series is the most strict one and prepares you well for…
Year: 2020
The ultimate upgrade guide to Cake 4
Here we go, time to upgrade again. And to document it. CakePHP 4.1 is already released, and also at work now we consider the upgrade of a larger internal application. This is basically the successor of the old upgrade notes…
Improved CakePHP ErrorHandler
Some might already know the improved error handler parts of the Tools plugin from CakePHP 2 or 3. Here I rewrite and publish those now for the 2020 CakePHP 4 scope. Motivation The main goal of the error.log is to…
Leverage your IDE
Using the example of PhpStorm 2020.1 and a state-of-the-art CakePHP 4 app. Preliminary remarks The following ideally should adhere to any IDE and framework. I just can’t verify and confirm them all, thus the selection at hand. Please be so…
Exposing records in CakePHP
… using UUIDs (universally unique identifiers) on top of the existing AIID (auto-increment ID) primary keys. Introduction I first have to explain a bit where I am coming from regarding this topic. Over 13 years ago (~2007) I started some…
CakePHP Tips Winter 2020
Over the last months, I collected some useful tips again for CakePHP apps and development you might find useful. Data Integrity for your DB content I usually also don’t take this into account when creating new table relations, even though…
Virtual query fields in CakePHP
This basically compliments the article about virtual entity fields. Note that those entity ones are not creating custom SQL queries, but work/operate on the existing entity data. Now, the query ones, however, usually involve custom SQL snippets to fetch the…