20 lines
358 B
PHP
20 lines
358 B
PHP
<?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);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
?>
|