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…

Middleware and CakePHP

3

I started to migrate some of my CakePHP 3.x apps to CakePHP 3.3 middleware and even tested 3.4 already back in 2016. Until then I didn’t even try the new PSR7 way. But it was about time I caught up…

CakePHP Tips 2017 Part 1

3

Whoops as ErrorHandler I recently switched to Whoops in my apps. It provides a better exception rendering for development mode for most cases. Just load the plugin (dereuromark/cakephp-whoops) and modify the bootstrap line: //(new ErrorHandler(Configure::consume(‘Error’)))->register(); (new \CakephpWhoops\Error\WhoopsHandler(Configure::consume(‘Error’)))->register(); If you already…