Monthly Archives: August 2008

Dancing Ledge

Recently I was on holiday in Dorset on day it poured with rain all day long. In the evening I wanted to do for a walk by myself. The rain still hadn’t let up, but at 8.50pm I set off from Tom’s Field anyway, and walked up the hill. I wanted to see the sea…. Read more »

Traffic Light Therapy

Just started a new job (so far I’m enjoying it a lot (although it will be even better perfect when I can get a Cake based system (not that what is in place at the moment is bad – on the contrary it is very good – it is just that I am philosophically opposed… Read more »

Set CakePHP layouts in app_controller

Fed up of writing $this->layout = ‘admin’ in all the admin methods of your controllers? Me too. I realised that instead you could automatically set them in the beforeFilter() of your app_controller instead. 1 2 3 4 5 6 7 8 9 10 11 12 13 function beforeFilter(){   if(isset($this->params[’prefix’])) { //read the admin prefix… Read more »