Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- updating modified time.
- $this->Editor->setConfig('afterEditFun', array(
- &$this,
- 'updateModifiedTime'
- ));
- and
- function updateModifiedTime($id, $col, $info)
- {
- $mt = date('Y-m-d H:i:s');
- $query = "update " . tblMain . " set modified_at = '" . $mt . "' where id = '" . $col . "' ";
- $result = $this->Editor->doQuery($query);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement