How can I display my database queries in the Codeigniter Profiler when I load my databases in my models?
问题 My Codeigniter system uses multiple databases. I don't need every database on every page, so I load each connection in the model where it's needed, then load the required models within each controller. The profiler does not display any of the queries from these databases when I load things this way. This is how I load the databases in my models: $this->Companies_db = $this->load->database( 'companies', TRUE, TRUE ); I used to load all my databases in MY_Controller() ( an extension of the core