Problem with library extension - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem with library extension (/showthread.php?tid=41411) |
Problem with library extension - El Forum - 05-07-2011 [eluser]rockstyle[/eluser] Hi there, I tried to use this piece of library: http://ellislab.com/forums/viewthread/150027/ when something weird happened ( I used exactly the same content, changed nothing): Code: Fatal error: Call to undefined method CI_Config::set() in C:\xampplite\htdocs\myapp\application\controllers\admin.php on line 50 which is: Code: $this->config->set('service_price', '4,99'); File (MY_Config.php) is put in /application/libraries/ folder and it should work, but doesn't. Any help appreciated. Problem with library extension - El Forum - 05-07-2011 [eluser]InsiteFX[/eluser] If your running CI 2.0.+ If the library is in the system/core folder then your extended library goes into application/core ! If the library is in the system/libraries folder then your extended library goes into application/libraries ! Config.php is a Core library - You have the library in the wrong folder! InsiteFX Problem with library extension - El Forum - 05-07-2011 [eluser]rockstyle[/eluser] Thank you so much. It worked out |