当我运行我的index.php时,我收到以下错误:
在'../data/DSS/public/index.php中找不到“应用程序”类
Index.php
define ('ROOT' , dirname((__DIR__)) . DS);
define('APP', ROOT . 'app'. DS);
define('VIEW', ROOT . 'app'. DS . 'view'. DS);
define('MODEL', ROOT . 'app'. DS . 'model'. DS);
define('CORE', ROOT . 'app'. DS . 'core'. DS);
define('DATA', ROOT . 'app'. DS . 'data'. DS);
define('CONTROLLER', ROOT . 'app'. DS . 'controller'. DS);
$modules = [ROOT, APP, VIEW, MODEL, CORE, DATA, CONTROLLER];
set_include_path(get_include_path(). PATH_SEPARATOR . implode(PATH_SEPARATOR, $modules));
spl_autoload_register('spl_autoload', false);
/* Starts the application*/
$app = new Application();
它在我的localhost中工作正常,我的WWWroot是/ public,但在服务器上是/ data