public function detailAction($id)
 {
     $id = $this->filter->sanitize($id, array("int"));
     if ($id) {
         $searchParams = array("id = '" . $id . "'");
         $debts = Debts::findFirst($searchParams);
         $this->view->setVar("debts", $debts);
         $debt = Debt::find("fid = " . $id);
         $this->view->debt = $debt;
         $this->view->website = FILEWEBNAME;
         $match = Match::find("debt_number  = '" . $debts->number . "'");
         $this->view->match = $match;
         foreach ($match as $key => $val) {
         }
         fb($match->toArray());
     } else {
         $this->flash->error("没有找到对应的债权");
         return $this->forward("debt/index");
     }
 }