private function searchTag() { if ($_GET['type'] == 3) { $this->_model->inputkeyword = $_GET['inputkeyword']; parent::page($this->_model->searchTagContentTotal(), ARTICLE_SIZE); $_object = $this->_model->searchTagContent(); Tool::subStr($_object, 'info', 120, 'utf-8'); Tool::subStr($_object, 'title', 35, 'utf-8'); if ($_object) { foreach ($_object as $_value) { if (empty($_value->thumbnail)) { $_value->thumbnail = 'images/none.jpg'; } } } $_tag = new TagModel(); $_tag->tagname = $this->_model->inputkeyword; $_tag->getOneTag() ? $_tag->addTagCount() : $_tag->addTag(); $this->_tpl->assign('SearchContent', $_object); } }