private function showComment() { if (isset($_GET['cid'])) { parent::__construct($this->_tpl, new CommentModel()); $this->_model->cid = $_GET['cid']; $_content = new ContentModel(); $_content->id = $_GET['cid']; if (!$_content->getOneContent()) { Tool::alertBack('comment not existing'); } parent::page($this->_model->getCommentTotal()); $_object = $this->_model->getAllComment(); $_object2 = $this->_model->getHotThreeComment(); $_object3 = $_content->getHotTwentyComment(); $this->setObject($_object); $this->setObject($_object2); $this->_tpl->assign('titlec', $_content->getOneContent()->title); $this->_tpl->assign('info', $_content->getOneContent()->info); $this->_tpl->assign('id', $_content->getOneContent()->id); $this->_tpl->assign('cid', $this->_model->cid); $this->_tpl->assign('AllComment', $_object); $this->_tpl->assign('HotThreeComment', $_object2); $this->_tpl->assign('HotTwentyComment', $_object3); } else { Tool::alertBack('illegal act'); } }