How to get database config? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to get database config? (/showthread.php?tid=8653) |
How to get database config? - El Forum - 05-26-2008 [eluser]PorkOne[/eluser] Hi How to get database configuration parameters in controller? How to get database config? - El Forum - 05-26-2008 [eluser]gtech[/eluser] if you take a look in the database/DB_driver.db There is a list of variables that are available in the db object so I reckon Code: echo $this->db->username; would work. |