Facing some issues with structure

here is the custom config file created by some developer(app/customconfig.php) and called in bootstrap.php

define(“SITE_URL”, “http://localhost:8765/”);

define(“APP_NAME”, “MyWeb”);
define(“SITE_LAYOUT”, “default”);
define(“ADMIN_LAYOUT”, “admin”);
define(“ADMIN_LOGIN_LAYOUT”, “admin_login”);
define(“VENDOR_LOGIN_LAYOUT”, “vendor_login”);
define(“NOT_AVAILABLE”, “Not Available”);
define(“USER_ROLE_BUSINESS_OWNER”, 1);
define(“USER_ROLE_ADMIN”, 2);
define(“EMAILS_ENABLED”, true);
define(“EMAIL_FROM”, "help@MyWeb.com");
define(“EMAIL_FROM_NAME”, “MyWeb”);
define(“SEND_CLIENT_REGISTRATION_EMAIL”, true);
define(“SEND_VENDOR_REGISTRATION_EMAIL”, true);
define(“DELETED”, true);
define(“NOT_DELETED”, false);
define(“ADMIN_DATE_FORMAT”, “Y-m-d”);
define(“ADMIN_DATE_TIME_FORMAT”, “Y-m-d h:i:s A”);
define(“ADMIN_TIME_FORMAT”, “h-i-s A”);
define(“APP_USER_ADMIN”, 1);
define(“APP_USER_VENDOR”, 2);

in view and controller functions this is called in this way

but when view renders it show error like this
Warning (2): Use of undefined constant SITE_URL - assumed 'SITE_URL' (this will throw an Error in a future version of PHP) in [C:\xampp\htdocs\pocketpagitclone\src\Template\Layout\default.ctp, line 25] Request URL: /appointments/save Referer URL: http://localhost:8765/appointments Trace: Cake\Error\BaseErrorHandler::handleError() - CORE\src\Error\BaseErrorHandler.php, line 153 include - APP/Template\Layout\default.ctp, line 25 Cake\View\View::_evaluate() - CORE\src\View\View.php, line 1025 Cake\View\View::_render() - CORE\src\View\View.php, line 986 Cake\View\View::renderLayout() - CORE\src\View\View.php, line 657 Cake\View\View::render() - CORE\src\View\View.php, line 615 Cake\Controller\Controller::render() - CORE\src\Controller\Controller.php, line 623 Cake\Http\ActionDispatcher::_invoke() - CORE\src\Http\ActionDispatcher.php, line 125 Cake\Http\ActionDispatcher::dispatch() - CORE\src\Http\ActionDispatcher.php, line 93 Cake\Http\BaseApplication::__invoke() - CORE\src\Http\BaseApplication.php, line 78 Cake\Http\Runner::__invoke() - CORE\src\Http\Runner.php, line 65 Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE\src\Routing\Middleware\RoutingMiddleware.php, line 59 Cake\Http\Runner::__invoke() - CORE\src\Http\Runner.php, line 65 Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE\src\Routing\Middleware\AssetMiddleware.php, line 88 Cake\Http\Runner::__invoke() - CORE\src\Http\Runner.php, line 65 Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE\src\Error\Middleware\ErrorHandlerMiddleware.php, line 92 Cake\Http\Runner::__invoke() - CORE\src\Http\Runner.php, line 65 DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT\vendor\cakephp\debug_kit\src\Middleware\DebugKitMiddleware.php, line 52 Cake\Http\Runner::__invoke() - CORE\src\Http\Runner.php, line 65 Cake\Http\Runner::run() - CORE\src\Http\Runner.php, line 51 Cake\Http\Server::run() - CORE\src\Http\Server.php, line 80 [main] - ROOT\webroot\index.php, line 3

Why not to append these settings to cakes config array ? Storing user configuration in constants sounds like hard coding to me. I would store these settings in db table, and load them into session after successful authentication. But if from any reason you still want to stick to constants put them into bootstrap or regular config file.