Library Not Found CI3 |
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
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
Are you autoload 'CI_Document' or 'Document'. Because you autoload 'CI_Document' but your library name is 'Document'
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/ge...guide.html Website: http://avenir.ro
Do you have a 'Document' controller as well? This may be helpful: http://forum.codeigniter.com/thread-6238...#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/ge...guide.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. |
Welcome Guest, Not a member yet? Register Sign In |