SHARE
TWEET

Untitled

a guest May 21st, 2017 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //bootstrap.php
  2.  
  3.     protected function _initDB()
  4.     {
  5.         $dbs = $this->getPluginResource('multidb');
  6.         Zend_Registry::set('db', $dbs->getDb('db1'));
  7.         Zend_Registry::set('db2', $dbs->getDb('db2'));;
  8.     }
  9.  
  10. //application.ini
  11. ;setting up the db - primary databse
  12. resources.multidb.db1.adapter = "pdo_mysql"
  13. resources.multidb.db1.host = "localhost"
  14. resources.multidb.db1.username = "root"
  15. resources.multidb.db1.password = ""
  16. resources.multidb.db1.dbname = "herofull"
  17.  
  18. ;secondary - user GS database
  19. resources.multidb.db2.adapter = "pdo_mysql"
  20. resources.multidb.db2.host = "localhost"
  21. resources.multidb.db2.username = "root"
  22. resources.multidb.db2.password =
  23. resources.multidb.db2.dbname = "heroGS"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top