zen of coding

Bye-bye $cakeDebug…

The infamous $cakeDebug variable, which has been around for a long time and managed to annoy a few people in the process, has been replaced in the recent builds of CakePHP 1.3 with an element. See the ticket here: http://cakephp.lighthouseapp.com/projects/42648/tickets/35-the-implementation-of-dbo_sourcephp-logging-needs-changed The two points to take away are: Automatic SQL dumps[…]

Read More »

Overriding default URL's (aka persistent routes)

CakePHP’s routes allow for an easy way to serve content by using URL aliases. Let’s take an example from the manual: Router::connect(     ‘/cooks/:action/*’, array(’controller’ => ‘users’, ‘action’ => ‘index’) ); By having the user access the URL such as example.com/cooks/index simply shows the default view for example.com/users/index (as[…]

Read More »
%d bloggers like this: