Created
November 22, 2012 09:20
-
-
Save ceckoslab/4130152 to your computer and use it in GitHub Desktop.
sybase
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
protected function _connect() { | |
$config = new Zend_Config( | |
array( | |
'database' => array( | |
'adapter' => 'Pdo_Mssql', | |
'params' => array( | |
'host' => '127.0.0.1', | |
'dbname' => 'test', | |
'username' => 'webuser', | |
'password' => 'secret', | |
'pdoType' => 'sybase' | |
) | |
) | |
) | |
); | |
$db = Zend_Db::factory($config->database); | |
return $db; | |
} | |
public function getConnection() { | |
return $this->_connect()->getConnection(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment