DatabaseColumns.php
authorAlan Knowles <alan@roojs.com>
Thu, 22 May 2014 07:40:34 +0000 (15:40 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 May 2014 07:40:34 +0000 (15:40 +0800)
DatabaseColumns.php

index ea38b61..9a2a161 100644 (file)
@@ -25,9 +25,15 @@ class Pman_Core_DatabaseColumns extends Pman {
     function get($table) {
         $d = DB_DAtaObject::Factory($table);
         $re = $d->autoJoin();
-        echo '<PRE>';
-        print_r($re);
-        exit;
+        
+        foreach($re['cols'] as $c=>$f {
+            $ret[]  = array(
+                'name' => $c,
+                'val' =>$v
+            );
+            
+        }
+        $this->jdata($ret);
         
         
     }