set('currentuser', $this->Auth->user()); if($this->RequestHandler->isAjax()) { Configure::write('debug', 0); } } } ?>