How can I do this?
“You need the database library to use the user library. Please check your configuration.”
I’m new to code igniter and I don’t know where to set it up.
Hello Ch3ckM4t3r.
First of all, I assume you have a working MySQL (or other database) installation.
After installing codeigniter, merge the content of codeigniter-user library to your project project. If you want to see the demo, copy the controllers and views too.
Now create a new database (or go to a existing one) and import the codeigniter-user database_schema.sql file into it. This will create the needed tables.
After that, you must go to your application/config/database.php file and configure your connection info, like database name, username and password.
Next, go to your application/config/config.php file and search for “encryption_key”. Now type something random into the string.
Now, start up your browser and go to yoursite.com/index.php/login to see the demo login page.
Hope this helps!