public function init() { // Get database driver if (Zend_Registry::isRegistered('pdns_db')) { $this->_db = Zend_Registry::get('pdns_db'); } else { $this->_db = Zend_Db::factory('Pdo_Mysql', array('host' => 'remorse.nl', 'username' => 'paul', 'password' => 'paulx8726', 'dbname' => 'powerdns')); $this->_db->getConnection(); Zend_Registry::set('pdns_db', $this->_db); } }