initDatabase(); } public function initDatabase() { $config = \Zend_Registry::get('config'); $dsn = "pgsql:host={$config->visual_db->hostname};" ."port={$config->visual_db->port};" ."dbname={$config->visual_db->database};" ."user={$config->visual_db->username};" ."password={$config->visual_db->password}"; $this->db = new \PDO($dsn); } }