-2

我遇到了一个问题,即从 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(),
}

如果您需要更多信息,请告诉我!

4

1 回答 1

0

Check your paths: the first is correctly fully lowercase but the second suddenly has the filename uppercase. All paths in Fuel are fully lowercase, no matter the classname. Thus change the filename for the I2A2 class to i2a2.php and it'll work.

于 2012-02-16T09:32:55.257 回答