Created
March 12, 2009 08:46
-
-
Save thecookie/77970 to your computer and use it in GitHub Desktop.
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
<?php | |
require_once 'Sophpa/Database.php'; | |
require_once 'Sophpa/Resource.php'; | |
require_once 'Sophpa/Http/Curl.php'; | |
require_once 'Sophpa/Document.php'; | |
require_once 'Sophpa/View.php'; | |
$http = new Sophpa_Http_Curl(); | |
$resource = new Sophpa_Resource($http, 'http://eee:5984/test'); | |
$db = new Sophpa_Database($resource); | |
// v.s.: | |
require_once 'Sophpa/Manager.php'; | |
$manager = new Sophpa_Manager(); | |
$db = $manager->getDatabase('http://eee:5984/test'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment