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: