Here is the source code for our user authentication model which we use in our CodeIgniter applications for interfacing with our users tables. Highly configurable to suit a variety of database schemas.
CodeVault CodeIgniter User Authentication Model
Please leave any feedback for the model on this blog post, not in the CodeVault!
Tags: CodeIgniter, PHP
Category: PHP Tutorials










When running your authentication model I get the following error:
Fatal error: Call to a member function generate_page_data() on a non-object in C:\htdocs5\CI_ION\system\application\controllers\login.php on line 11
Any suggestions?
It’s because you are using the default controller. You’ll want to modify the controller to perform whatever actions you require.