|
16 | 16 | // Set the default locale |
17 | 17 | setlocale(LC_ALL, 'en_US.UTF-8'); |
18 | 18 |
|
19 | | -Flight::set('flight.base_url', '/'); // if this is in a subdirectory, you'll need to change this |
20 | | -Flight::set('flight.case_sensitive', false); // if you want case sensitive routes, set this to true |
21 | | -Flight::set('flight.log_errors', true); // if you want to log errors, set this to true |
22 | 19 | Flight::set('flight.handle_errors', false); // if you want flight to handle errors, set this to true |
23 | 20 | Flight::set('flight.views.path', __DIR__ . '/../views'); // set the path to your view/template/ui files |
24 | | -Flight::set('flight.views.extension', '.php'); // set the file extension for your view/template/ui files |
25 | | -Flight::set('flight.content_length', true); // if flight should send a content length header |
26 | 21 |
|
27 | 22 | /* |
28 | 23 | * Get Tracy up and running |
|
33 | 28 | * https://tracy.nette.org/ |
34 | 29 | */ |
35 | 30 | Debugger::enable(); // auto tries to figure out your environment |
36 | | -// Debugger::enable(Debugger::DEVELOPMENT) // sometimes you have to be explicit (also Debugger::PRODUCTION) |
| 31 | +// Debugger::enable(Debugger::Development); // sometimes you have to be explicit (also Debugger::Production) |
37 | 32 | // Debugger::enable('23.75.345.200'); // you can also provide an array of IP addresses |
38 | 33 | Debugger::$logDirectory = __DIR__ . '/../log'; |
39 | 34 | Debugger::$strictMode = true; // display all errors |
40 | 35 | // Debugger::$strictMode = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; // all errors except deprecated notices |
41 | 36 |
|
| 37 | +// if Debugger bar is visible, then content-length can not be set by Flight |
42 | 38 | if (Debugger::$showBar) { |
43 | | - Flight::set('flight.content_length', false); // if Debugger bar is visible, then content-length can not be set by Flight |
| 39 | + Flight::set('flight.content_length', false); |
44 | 40 | (new Container)->get(TracyExtensionLoader::class); |
45 | 41 | } |
46 | 42 |
|
|
0 commit comments