包含的文件(在包含的列表中找到)找不到类'config‘
错误在哪里?我找不到哪里出了问题。
<?php
define(DS,DIRECTORY_SEPARATOR);
final class kernel
{
static private function classLoader($className)
{
include 'project'.DS.'system'.DS.$className.'.php';
}
static public function execute()
{
spl_autoload_register('self::classLoader');
$config = new config;
}
}
?>config.php数据:
<?php
class config
{
static public function settings()
{
return 'test';
}
}
?>发布于 2013-05-25 04:04:25
问题已经解决了。
是我的错。FTP客户端显示了文件,但它是清晰的。缓存副本是用PHP代码实现的。
https://stackoverflow.com/questions/16741614
复制相似问题