正文phpcms v9内容页调用当前更新时间(updatetime)为空的解决办法飘云 V管理员/2015-11-24/107 阅读1124此篇文章发布距今已超过897天,您需要注意文章的内容或图片是否可用! 在内容模版顶部加入下面的代码即可:<?php if(!$updatetime){ $this->db->set_model($modelid); $_r = $this->db->get_one(array('id'=>$id),'updatetime'); $updatetime = $_r['updatetime']; } ?>调用代码:<span>更新时间:{$updatetime}</span>