aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-03-30 15:41:42 -0300
committerSilvio <silvio@devlet.com.br>2010-03-30 15:41:42 -0300
commit2fc4b766f4422f6a58c0a535fadf99096e7a9ddd (patch)
tree62ac2cd98f59541d9dde04ca93404b7d433f0daf /index.php
parented4a97748c2c9b76e45c69287d37f995da8fcbde (diff)
downloadcinisis-2fc4b766f4422f6a58c0a535fadf99096e7a9ddd.tar.gz
cinisis-2fc4b766f4422f6a58c0a535fadf99096e7a9ddd.tar.bz2
Adding doxygen
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.php b/index.php
index f382f22..21d4d18 100644
--- a/index.php
+++ b/index.php
@@ -17,14 +17,18 @@ function __autoload($class) {
require_once 'classes/' .$class. '.php';
}
-// Test database connection.
+// Load database schema.
$schema = Spyc::YAMLLoad('schemas/anu10.yaml');
+
+// Setup database connection.
$db = new MaleteDb($schema);
//$db = new PhpIsisDb($schema);
+
+// Test connection.
if ($db) {
+ echo '<pre>';
$result = $db->read(1);
//$result = $db->rows();
- echo '<pre>';
print_r($result);
echo '</pre>';
}