我有一个问题,从PHP 5.3.2即将5.3.3代码不再能找到“I2A2”级。PHP“辅助类” - 类未发现
下面是一些信息:
错误: ErrorException [错误]:类 'I2A2' 未找到
致命错误:类 'I2A2' 在/ var找不到/ www/html等/第6行上的root/sandbox/lpolicin/t6/fuel/app/classes/observer/selectcustomer.php
$ 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;
}
}
自动装载机 (这是inse RT成一个巨大的数组,然后自动加载everyting)....
{
'always_load' => array(
'classes' => array(),
}
如果您需要更多信息,请让我知道!
您不再加载该类。此外,从您发布的代码片段中,并未显示类的定义与类加载器之间的任何关系。 – hakre 2012-02-15 18:10:40