Browse Source

Phpixie db persistent connection (#3732)

* Phpixie db persistent connection

* Phpixie correct db persistent connection
Joan Miquel 7 years ago
parent
commit
4c50b340d5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      frameworks/PHP/phpixie/assets/config/db.php

+ 4 - 1
frameworks/PHP/phpixie/assets/config/db.php

@@ -11,6 +11,9 @@ return array(
 		
 		
 		// 'db' and 'host' are required if you use Mysqli driver
 		// 'db' and 'host' are required if you use Mysqli driver
 		'db' => 'hello_world',
 		'db' => 'hello_world',
-		'host'=>'tfb-database'
+		'host'=>'tfb-database',
+		'connectionOptions' => array(
+			PDO::ATTR_PERSISTENT => true
+		)
 	)
 	)
 );
 );