Add start to migrate script
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 2 Jul 2015 20:35:31 +0000 (16:35 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 2 Jul 2015 20:35:31 +0000 (16:35 -0400)
index.php [new file with mode: 0644]

diff --git a/index.php b/index.php
new file mode 100644 (file)
index 0000000..3303dc1
--- /dev/null
+++ b/index.php
@@ -0,0 +1,27 @@
+<?php
+// read in setup file
+ob_start();
+require_once '../setup.phtml';
+ob_end_clean();
+
+if (!defined('CONN_STR')) {
+    die('There is no define for CONN_STR');
+}
+echo '<pre>'.print_r(CONN_STR, true).'</pre>';
+if (isset($applicationConfig)) {
+    echo '<pre>Yes, found $applicationConfig</pre>';
+} else {
+    echo '<pre>No, did not find $applicationConfig</pre>';
+}
+if (class_exists('Toolkit_Database')) {
+    $dbh = Toolkit_Database::getInstance();
+}
+if (!$dbh) {
+    die('Error: no $dbh');
+}
+
+$sql = "
+  SELECT *
+    FROM pages
+ORDER BY pos";
+echo 'here';