我無法使Config_Database工作。Kohana配置數據庫 - 啓用
我支持新的配置源這樣:
Kohana::$config->attach(new Config_Database, FALSE);
我加載後加載模塊的源 - 在bootstrap.php中文件的底部。
我得到當我試圖啓用此設置源
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261900 bytes) in /var/www/moje/modules/database/classes/kohana/config/database/writer.php on line 124
124線在此文件中的錯誤(... /)數據庫/ writer.php犯規存在 - 它只有111線。
什麼錯?
編輯:Kohana的3.2
什麼是Config_Database前右裝載數據庫的配置?如果你想加載數據庫配置文件,它應該只是一個關聯數組,而不是一個類。 – ZolaKt