public function detailAction($id)
 {
     $id = $this->filter->sanitize($id, array("int"));
     if ($id) {
         $searchParams = array();
         $searchParams = array("id = '" . $id . "'");
         $customer = Customer::findFirst($searchParams);
         $this->view->setVar("customer", $customer);
         $cards = Cards::find("user = '******'");
         $this->view->setVar("cards", $cards);
         $this->view->setVar("uid", $id);
     } else {
         $this->flash->error("没有找到对应的客户");
         return $this->forward("customer/index");
     }
 }