Beispiel #1
0
 public function select()
 {
     $w = new Word();
     $rows = $w->selectLatest(100);
     //        foreach($rows as $key=>$val) {
     //            echo $val["w_desc"]."<hr>";
     //        }
     echo json_encode($rows);
 }
Beispiel #2
0
 public function getOne($id)
 {
     $w = new Word();
     echo json_encode($w->getById($id));
 }