public function theme()
 {
     $m1 = new \Home\Model\WeiboUserModel();
     $arr1 = $m1->search2();
     $this->assign("data", $arr1);
     $m2 = new \Home\Model\WeiboContentModel();
     $arr2 = $m2->search2($arr1[0]['name']);
     //var_dump($arr2);
     $this->assign("weibo", $arr2);
     $content = $this->fetch('tieba:floor');
     //->fetch('Admin:index'
     $this->assign("content", $content);
     $this->display("public:tpl");
 }
 public function detail()
 {
     //接收contentid,在comment中按照contentid查找
     $m = new \Home\Model\WeiboContentModel();
     $arr = $m->search3();
     $this->assign("weibo", $arr);
     var_dump($arr);
     //echo "</br> this is comment </br></br>";
     $m3 = new \Home\Model\WeiboCommentModel();
     $arr3 = $m3->search2();
     //var_dump($arr3);
     $this->assign("comment", $arr3);
     $content = $this->fetch('weibo:detail');
     //->fetch('Admin:index'
     $this->assign("content", $content);
     $this->display("public:tpl");
 }