/** * * @param type $id * @return all record question */ public function getQuestion($id) { $model = new Mquestion(); $total = $model->findAll("parent = " . $id . " and state = 1"); return $total; }