سلام
وقت بخیر ، هنگام اجرای صفحه با این خطا مواجه شدم!
Fatal error: Uncaught Error: Undefined constant "BASE_PATH" in C:\xampp\htdocs\todo\bootstrap\init.php:2 Stack trace: #0 C:\xampp\htdocs\todo\process\ajaxHandler.php(2): include_once() #1 {main} thrown in C:\xampp\htdocs\todo\bootstrap\init.php on line 2
کدهای صفحه ی init.php :
<?php
include BASE_PATH . "bootstrap/constants.php";
include BASE_PATH . "bootstrap/config.php";
include BASE_PATH . "vendor/autoload.php";
include BASE_PATH . "libs/helpers.php";
include BASE_PATH . "libs/lib-auth.php";
include BASE_PATH . "libs/lib-tasks.php";
try{
$pdo = new PDO("mysql:dbname=$database_config->db;host=$database_config->host","$database_config->user","$database_config->pass");
}catch(PDOException $e){
diePage('Connection faild: ' . $e->getMessage());
}