31 lines
743 B
PHP
Executable file
31 lines
743 B
PHP
Executable file
<?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());
|
|
|
|
/**
|
|
* Define the scheme for issue Types.
|
|
*/
|
|
$this->set('issueTypes', array(1=>"Bug Report", 2=>"Feature Request", 3=>"Other IT Help"));
|
|
|
|
$priorities = array(1 => 'Low',2=>"Medium",3=>"High", 4=>"Critical");
|
|
$this->set('issuePriorities', $priorities);
|
|
|
|
|
|
|
|
if($this->RequestHandler->isAjax()) {
|
|
Configure::write('debug', 0);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
?>
|