globals.php in Fluent Support – Helpdesk & Customer Support Ticket System 1.5.2, at boot/globals.php
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | ***** DO NOT CALL ANY FUNCTIONS DIRECTLY FROM THIS FILE ****** |
| 5 | * |
| 6 | * This file will be loaded even before the framework is loaded |
| 7 | * so the $app is not available here, only declare functions here. |
| 8 | */ |
| 9 | |
| 10 | |
| 11 | is_readable(__DIR__ . '/globals_dev.php') && include 'globals_dev.php'; |
| 12 | |
| 13 | if (!function_exists('dd')) { |
| 14 | function dd() |
| 15 | { |
| 16 | foreach (func_get_args() as $arg) { |
| 17 | echo "<pre>"; |
| 18 | print_r($arg); |
| 19 | echo "</pre>"; |
| 20 | } |
| 21 | die(); |
| 22 | } |
| 23 | } |
| 24 |