How do i connect database in codeigniter because there is not any core array in autoload.php i am trying to search it there not any core array as like pervious version
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In application/config/database.php you place the settings to connect to your DB, for ex:
Then, you might want to autoload it to have always at hand and avoid calling the library often. You put it in the
which is on line 55 of application/config/autoload.php
Then you can just call it in any controller or method (or custom libraries) with
look in User Guide on database driver for all details and methods and the useful Active Record (sortof), and if you’ve problem just ask.