示例#1
0
 public function getCircleCardAction()
 {
     $list = array();
     $request = $this->getRequest();
     $circle_id = $request->get('circle_id');
     $da = $this->get("we_data_access");
     $user = $this->get('security.context')->getToken()->getUser();
     $circlemgr = new \Justsy\BaseBundle\Management\CircleMgr($da, null);
     $data = $circlemgr->Get($circle_id);
     $data2 = $circlemgr->GetTopMemberAndCount($circle_id);
     $list["we_circle"] = $data;
     $list["detail"] = $data2;
     $list["circle_join"] = true;
     if (!in_array(\Justsy\BaseBundle\Management\FunctionCode::$CIRCLE_JOIN_C, $user->getFunctionCodes())) {
         $list["circle_join"] = false;
     }
     return $this->render("JustsyBaseBundle:Circle:circle_card.html.twig", $list);
 }