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.
As [...]
Posts from ‘August, 2008’
Dancing Ledge
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 [...]
Brutalism, Architecture, Cars and Batman
Yesterday I saw the new Batman film the Dark Knight. All in all I was pretty impressed and I enjoyed it a lot (like my opinion matters…). I was wonderfully old fashioned in many ways epic and operatic, dark and intelligent. I thought that it was very interesting film in a lot of ways, of [...]
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 set in core.php
$admin = Configure::read(’Routing.admin’);
[...]
At last the CakePHP books have arrived
I’d like to say it never rains but it pours, but that would be entirely the wrong sentiment, I need something more like good things come to those who wait…
Anyway after an epic wait a flurry of CakePHP books have arrived.
details on Amazon
details on Amazon
details on Amazon
view at Manning
I haven’t read any of these books [...]