Unable to locate the specified class: Session.php in Codeigniter
class Chat_model extends CI_Controller
should be
class Chat_model extends CI_Model
If you use Codeigniter Modular Extensions HMVC this error can occur if you forget to change your class to extend MX_Controller instead of CI_Controller
So in your case you would start your class with:
class Chat extends MX_Controller {}
Instead of:
class Chat extends CI_Controller {}
Hope this helps someone who runs into the same issue
the question has been around long enough and has already gotten a solution, so I just shared experiences with similar cases.
I get the same error message when I involve the PDF library with the class name Pdf.php and load it via autoload
as 'pdf'
.
My mistake, the controller that will display my page I also named Pdf.php, and the error message appears ( that's the reason why I found this question :) ). The problem was immediately solved after I replaced the name of my controller with another name.
hope this useful