• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[RESOLVED] Executing N times database.php

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,

The file is included as many times as you attempt to load a database.

Hi, thank you, I found my problem, was calling "$this->load->database('erp', TRUE);" many times, I didn't notice.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.