2009-09-09 20:23:39 -07:00
|
|
|
<?php
|
|
|
|
|
/* App Controller */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AppController extends Controller {
|
|
|
|
|
|
|
|
|
|
var $components = array('Auth', 'RequestHandler');
|
|
|
|
|
|
|
|
|
|
var $helpers = array('Javascript', 'Time', 'Html', 'Form', 'Ajax');
|
|
|
|
|
function beforeFilter() {
|
|
|
|
|
$this->set('currentuser', $this->Auth->user());
|
|
|
|
|
if($this->RequestHandler->isAjax()) {
|
|
|
|
|
Configure::write('debug', 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2009-10-10 00:06:46 -07:00
|
|
|
?>
|