diff --git a/application/helpers/debug_helper.php b/application/helpers/debug_helper.php new file mode 100644 index 00000000..e47fa901 --- /dev/null +++ b/application/helpers/debug_helper.php @@ -0,0 +1,31 @@ + + * @copyright Copyright (c) 2013 - 2020, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.1.0 + * ---------------------------------------------------------------------------- */ + +if ( ! function_exists('dd')) +{ + /** + * Output the provided variables with "var_dump" and stop the execution. + * + * Example: + * + * dd($appointment, $service, $provider, $customer); + * + * @param mixed ...$vars + */ + function dd(...$vars) + { + var_dump($vars); + + exit(1); + } +}