Problem with library extension |
[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.
[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
|
Welcome Guest, Not a member yet? Register Sign In |