private function Get_Content() { global $templates; $content = new ContentModel(); if (isset($_GET['id'])) { $content->id = $_GET['id']; if (!$content->Detail_Count()) { Tool::alertBack('警告:阅读量累计失败'); } $object = $content->Get_One_Content(); $templates->assgin('title_id', $object->id); $templates->assgin('title_content', $object->title); $templates->assgin('count', $object->read_count); $templates->assgin('date', $object->date); $templates->assgin('source', $object->source); $templates->assgin('author', $object->author); $templates->assgin('info', $object->info); $templates->assgin('content', $object->content); } }