[RESOLVED] Executing N times database.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: [RESOLVED] Executing N times database.php (/showthread.php?tid=64767) |
[RESOLVED] Executing N times database.php - fmertins - 03-23-2016 Hi folks! Love CI, using since 2008 :-) Today, with the 3.0.1 version, I put an "echo" at config/database.php and discover CI is passing/executing this file 13 times in a row, before I get my log messages at the controller. Is that right? I wonder might execute this file once, not multiple times... Thank you, Fernando RE: Executing N times database.php - Narf - 03-23-2016 The file is included as many times as you attempt to load a database. RE: Executing N times database.php - fmertins - 03-24-2016 Hi, thank you, I found my problem, was calling "$this->load->database('erp', TRUE);" many times, I didn't notice. |