I am using flexi auth in my application, but I meet below error. I do not know how to fix it. I am new in PHP. Please give me some ideas to fix it. I want to import flexi auth demo to my project.
Fatal error: Call to a member function database() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/benicewebserver/webserver/application/models/flexi_auth_lite_model.php on line 38