Improved CakePHP ErrorHandler

0

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

1

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…

Flash Messages in CakePHP 4

1

This replaces the old and outdated v2+ article about this topic. Looking back at v3 As the old article was still from CakePHP 2 days, the CakePHP 3 version was already its own plugin. It was moved to a standalone…

Exposing records in CakePHP

0

… 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

1

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

1

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…

CakePHP and Heroku

1

I was impressed with how straight forward it is to set up CakePHP apps on Heroku (or probably any Cloud solution probably). And it is free here for basic applications, especially for trying it out. Prepare your app Your application…

CakePHP Tips Summer 2019

0

This year I want to quickly put a few useful things out there again for you in terms of CakePHP development and ecosystem. CakePHP 4 preview Check out CakePHP 4 while it is still not RC (release candidate) and therefore…

DTOs in CakePHP

2

Data Transfer Objects in PHP have been around for some time. Martin Fowler proposed something here in his architecture book and blog posts back in 2004 even. Also, this article from 2010 describes the idea. They are also heavily used…