zen of coding

Remember $this!

Do you need to get some information about your current state of the cake app?… Maybe find out the name of the current layout? Or see what helpers are currently loaded? Need session time?… etc., etc.

$this contains a lot of usefull information.

Just try it in your beforeRender() in app controller:

pr($this);

Good stuff…

%d bloggers like this: