public function getCategoryListAction() { $p = new Model_Category(); $res = $p->listCategory(); echo json_encode(array('data' => $res)); }