我遇到了一个问题,即从 PHP 5.3.2 到 5.3.3 的代码不再能找到“I2A2”类。
这是一些信息:
错误: ErrorException [错误]:找不到类“I2A2”
致命错误:在第 6 行的 /var/www/html/root/sandbox/lpolicin/t6/fuel/app/classes/observer/selectcustomer.php 中找不到类“I2A2”
$directory_listing = \I2A2::get_customer_info("puid",$customer->puid);
代码:
“类/观察者/selectcustomer.php”
class Observer_Selectcustomer extends Orm\Observer
{
public function after_load(Model_Customer $customer)
{
$directory_listing = \I2A2::get_customer_info("puid",$customer->puid);
}
}
“类/I2A2.php”
class I2A2
{
if (static::$initalized === true)
{
return;
}
}
自动加载器(这是插入一个巨大的数组然后自动加载everyting)......
{
'always_load' => array(
'classes' => array(),
}
如果您需要更多信息,请告诉我!