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…
Tag: Testing
CakePHP Tips Winter 2016
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 objects, and either \Cake\I18n\Time or \Cake\I18n\FrozenTime then. Both those are…
CakePHP 2.5 arrived + CakePHP Tips 2014
You probably read my last tip sections. And I started to move some of them to my sandbox app. But once in a while it might also be nice to publish a few selected tips, here as well. Oh, and…
Continuous Integration with Jenkins
CI with Jenkins and GitHub is especially interesting for private repositories, as CI with Travis is mainly for free GitHub repos (unless you have Travis Pro, of course). But since Jenkins is OpenSource and free, it might make sense to…
CakePHP Tips – Summer 2013
While CakePHP 2.4 is now just around the corner (already beta), a few tips gathered the last few days. Don’t mix controller and component pagination Currently, if you mix controller pagination setup and call the Pagination component then, it can…
Continuous integration with Travis and CakePHP
I must admit that I only recently started to take testing more seriously. In the past, I just created tests if too much time was available. But the larger projects get, the more just minor changes will most likely break…