public function viewAction() { $fakeModel = new Admin_Model_Fakenum(); $dataModel = new Admin_Model_Data(); $dataModel->saveData('visit', 'view'); $displayParticipant = $fakeModel->getFakeFactorByName('participant') + $dataModel->getCountNumByAction('participant'); $displayVisit = $fakeModel->getFakeFactorByName('visit') + $dataModel->getCountNumByAction('visit'); $displayShare = $fakeModel->getFakeFactorByName('share') + $dataModel->getCountNumByAction('share'); $id = $this->getRequest()->getParam('id'); $newsModel = new Admin_Model_News(); $news = $newsModel->getItemById($id); $contentText = $newsModel->processNameInContentText($news->name, $newsModel->getNewsContentByIndex($news->content)); $contentInfo = $newsModel->seperateContent($contentText); $news->contentText = $contentInfo[1]; $news->title = $contentInfo[0]; //$this->view->signPackage=$this->_helper->wjssdk->GetSignPackage(); $this->view->displayNum = array('participant' => $displayParticipant, 'visit' => $displayVisit, 'share' => $displayShare); $this->view->news = $news; }