Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Autoload multi databases
Post: RE: Autoload multi databases

pconnect alredy false. If i connect and close conections in each method in models its work. But it is not rational. It would be better, if one time autoload all databases with visibility for all ...
14,342 Views
0 Replies
01-15-2015, 08:21 AM
UchihaSV
    Thread: Autoload multi databases
Post: RE: Autoload multi databases

Avenirer Wrote: (01-15-2015, 07:12 AM) -- Then don't load both databases inside a model. A model is only for one table. And a table is usually found in one database, not spread around databases. Also...
14,342 Views
0 Replies
01-15-2015, 07:34 AM
UchihaSV
    Thread: Autoload multi databases
Post: RE: Autoload multi databases

CodeIgniter 2.x
14,342 Views
0 Replies
01-15-2015, 07:06 AM
UchihaSV
    Thread: Autoload multi databases
Post: RE: Autoload multi databases

Yes, i alredy use this way. But if i load two models in one controllers, server has 500 Internal error, because load databases in each one models it's not good idea. So i want autoload all my data...
14,342 Views
0 Replies
01-15-2015, 07:05 AM
UchihaSV
    Thread: Autoload multi databases
Post: Autoload multi databases

$autoload['libraries'] = array('database'); It load only default db. How i can autoload, two or more databases?
14,342 Views
0 Replies
01-15-2015, 06:16 AM
UchihaSV
    Thread: CodeIgniter 2.x and shutdown database
Post: RE: CodeIgniter 2.x and shutdown database

I alredy understand what the problem is when looked in print_r($DB2), and i use "if ($DB2->conn_id)".
2,421 Views
0 Replies
01-14-2015, 10:41 AM
UchihaSV
    Thread: CodeIgniter 2.x and shutdown database
Post: CodeIgniter 2.x and shutdown database

I have some database connections, and i load database in controller if necessary. And i want continue my script work, if database is shutdown. But if some database is shutdown, my script stopped wit...
2,421 Views
0 Replies
01-14-2015, 03:21 AM
UchihaSV

Theme © iAndrew 2016 - Forum software by © MyBB