2013-03-19 76 views
0

我已经定制库笨自动加载自定义库不起作用

class Test extends CI_Controller { 
    public function __construct(){ 
     parent::__construct(); 
    } 

    public function abc(){ 
     //some code 
    } 
} 

当我这个库添加到自动加载,出现以下错误

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\xampp\htdocs...\system\core\Loader.php on line 495

+1

什么库你自动加载? – SilentAssassin 2013-03-19 07:17:34

+0

你正在向我们展示Controller not library .. – Svetoslav 2013-03-19 07:21:07

回答

0

或者你在该库循环或只是一个操作,即分配的内存负载,如插入数据吨成阵列。如果您无法优化您库中的操作,则可能需要增加php中允许的内存大小。