Welcome Guest, Not a member yet? Register   Sign In
Testing database connections
#1

Hello, I'm still learning CodeIgniter so please forgive me if my question is ridiculous. In a previous version of CI, I would set the 'autoinit' variable in the database config file to false, and initialize my database in an if statement which would return true or false if the connection couldn't be made without throwing any warnings. If false I would load a page giving instructions on how to set the database config file. I'm not seeing a choice for autoinit in CI 3, so I assume I need to find another solution. Could anyone point me in the right direction? Thanks!
Reply


Messages In This Thread
Testing database connections - by BenHeadrick - 03-30-2015, 10:24 PM
RE: Testing database connections - by CroNiX - 03-31-2015, 06:55 AM
RE: Testing database connections - by BenHeadrick - 03-31-2015, 04:04 PM
RE: Testing database connections - by CroNiX - 04-01-2015, 07:14 AM
RE: Testing database connections - by silentium - 04-01-2015, 10:26 AM
RE: Testing database connections - by BenHeadrick - 04-03-2015, 07:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB