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…Whoops as ErrorHandler I recently switched to Whoops in my apps….

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…

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

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…

CakePHP Tips 2015

0

Most tips are for 2.x and 3.x as they have been applied to both versions. Complex radio inputs A while back I posted a tip about deep array options for…Most tips are for 2.x and 3.x as they have been…

CakePHP Tips – Summer 2013

2

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…While CakePHP 2.4 is now just around the corner (already beta),…

CakePHP Tips

4

All new CakePHP tips collected over the last few weeks. Dispatcher execution order Tested on Cake2.3RC: APP/webroot/index.php CORE/bootstrap.php APP/Config/core.php APP/Config/bootstrap.php dispatchers defined in CORE bootstrap APP/Config/routes.php APP/Config/database.php controller and all…All new CakePHP tips collected over the last few weeks. Dispatcher…

Some new crazy (Cake)PHP tricks

7

Crazy – because these tips are not used that often probably. But for some rare occasions they might come in handy. Inserting some rows into an array $array = array(…Crazy – because these tips are not used that often probably….

Freshly baked Cake2.0 tips

9

With 2.0 there are many new features available. Some of them I want to introduce here. Using the console for 2.0 I once wrote about how to use the Cake1.3…With 2.0 there are many new features available. Some of them…