Commit 1b743ab2 by Phạm Văn Đoan

thêm thời gian cập nhật

parent bb3a980e
......@@ -128,7 +128,8 @@ class CmsVheartbeatlive extends CI_Controller
$data_insert = array(
'title' => $title,
'embed_code' => $embed_code,
'created_at' => date('Y-m-d H:i:s'),
'updated_at' => date('Y-m-d H:i:s')
);
$insert_id = $this->vheartbeat_live_model->add($data_insert);
// Ghi log
......@@ -171,7 +172,7 @@ class CmsVheartbeatlive extends CI_Controller
$data_update = array(
'title' => $title,
'embed_code' => $embed_code,
'updated_at' => date('Y-m-d H:i:s')
);
$this->vheartbeat_live_model->update($id, $data_update);
// Ghi log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment