在内容模版顶部加入下面的代码即可:
<?php
if(!updatetime){this->db->set_model(modelid);_r = this->db->get_one(array('id'=>id),'updatetime');
updatetime =_r['updatetime'];
}
?>
调用代码:<span>更新时间:{$updatetime}</span>
在内容模版顶部加入下面的代码即可:
<?php
if(!updatetime){this->db->set_model(modelid);_r = this->db->get_one(array('id'=>id),'updatetime');
updatetime =_r['updatetime'];
}
?>
调用代码:<span>更新时间:{$updatetime}</span>