Last active
August 29, 2015 14:01
-
-
Save peterjaap/577e274e77abb54dc5e3 to your computer and use it in GitHub Desktop.
Magento separate db connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = new Zend_Db_Adapter_Pdo_Mysql(array( | |
'host'=> '127.0.0.1', | |
'username' => 'webuser', | |
'password' => 'xxxxxxxx', | |
'dbname'=> 'test', | |
'profiler' => true, | |
)); | |
// $db->fetchCol, $db->fetchOne, $db->fetchPairs etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment