模型自动加载时间戳字段

模型一般默认有个两个时间字段。一个是添加时间,一个是修改时间 。我这个是基于tpshop该的 这是model.php 调用updatetime ,如图下意思就是 如果模型定义这个update_time字段 并且添加的时候会检测要添加的数组是否有update_time 这个字段。 if ( $this-> autoWriteTimestamp && $this-> updateTime && ( e
相关文章
相关标签/搜索