search
top

QuickTip: Pesky missing layout when requesting extensions

In CakePHP you can use a different layout (other than default.ctp) for all your views by simply changing the $layout property in your controller. I use this to deliver a different layout for, let’s say, the admin panel of the application – or maybe a member area. Let’s stick with the admin panel example: $this->layout = 'admin'; Now we all do some neat Ajax or XML here and there... read more

QLColorCode and CakePHP Templates

Mac OSX Hint: If you use the QLColorCode plugin for QuickLook to get fancy highlight when viewing a file, you might want to have the same when viewing CakePHP *.ctp and *.thtml files. It involves a bit of hacking, but not much. ... read more
top