Skip to content

Instantly share code, notes, and snippets.

@ceckoslab
Created November 22, 2012 09:20
Show Gist options
  • Save ceckoslab/4130152 to your computer and use it in GitHub Desktop.
Save ceckoslab/4130152 to your computer and use it in GitHub Desktop.
sybase
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