Fatal error: Call to a member function logged_in() on a non-object in - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Fatal error: Call to a member function logged_in() on a non-object in (/showthread.php?tid=60430) |
Fatal error: Call to a member function logged_in() on a non-object in - El Forum - 03-25-2014 [eluser]soluicius[/eluser] Hello, I followed this tutorial( https://tutsplus.com/course/codeigniter-best-practices/ - 04-Using Third Party Libraries) but i’m stuck while securing the pages. I think spark doesn’t load ion_auth model I get this error: Code: A PHP Error was encountered Here is my controller: 1) user.php Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2) welcome.php Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); and in autoload.php i have: Code: $autoload['sparks'] = array('ion_auth/2.5.0'); EDIT: Solved |