Welcome Guest, Not a member yet? Register   Sign In
linking to a MySQL DB in CI4?
#1

I want to create a DB (MySQLl 5.x) and connect it to my CI4 site.  I obviously know how to make the actual database, but not how to link it to CI.  I assume I create some sort of config.php file with my connection details, then include this in my site files.  I'm just not sure about the back end stuff.  Anyone have any pointers?  Thanks!
Reply
#2

You setup the database in app/Config/Database.php Your model will link to it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Okay thanks! Big Grin
Reply




Theme © iAndrew 2016 - Forum software by © MyBB