openSession(); // or if you want to use Doctrine Doctrine_DB and its // performance monitoring capabilities $dsn = "schema://username:password@dsn/dbname"; $dbh = Doctrine_DB::getConnection($dsn); $session = $manager->openSession(); ?>