Library Not Found CI3 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Library Not Found CI3 (/showthread.php?tid=62494) |
Library Not Found CI3 - wolfgang1983 - 07-21-2015 I have placed my library in application / libraries / Document.php And then when I go to autoload it. It Throws error PHP Code: Fatal error: Class 'CI_Document' not found in C:\Xampp\htdocs\project-1\system\core\Common.php on line 196 Why is it throwing error when auto loading? Document.php PHP Code: <?php RE: Library Not Found CI3 - suhindra - 07-21-2015 Are you autoload 'CI_Document' or 'Document'. Because you autoload 'CI_Document' but your library name is 'Document' RE: Library Not Found CI3 - Avenirer - 07-21-2015 Where is the Backtrace? Why didn't you post it? Not really related to your question, but it would be good for you in the long future to respect the PHP style guide for the CodeIgniter framework: http://www.codeigniter.com/user_guide/general/styleguide.html RE: Library Not Found CI3 - Narf - 07-22-2015 Do you have a 'Document' controller as well? This may be helpful: http://forum.codeigniter.com/thread-62387-post-320496.html#pid320496 (07-21-2015, 11:41 PM)Avenirer Wrote: Not really related to your question, but it would be good for you in the long future to respect the PHP style guide for the CodeIgniter framework: http://www.codeigniter.com/user_guide/general/styleguide.html The CI styleguide is only relevant to the framework's code. Of course, if you like it and you're using it, we'd be happy with that, but we don't promote it to people who just use CodeIgniter for something. It's good if you follow a styleguide at all, but it doesn't matter which one it is as long as you like it. |