Skip to content
Advertisement

Call to undefined method CI_Loader::library()

When I want to submit a post a get this type of error. I try to change everything starting from database field to my view but every time when I run a code I get same error but can not see where is the problem

Posts Controller

JavaScript

Posts Model

JavaScript

The error is in line 74, error message: Call to undefined method CI_Loader::libary()

Advertisement

Answer

try this in your constructor

JavaScript

replace the line 74

JavaScript

Enjoy! I hope. It will work. 🙂

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement