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 ...@@ -128,7 +128,8 @@ class CmsVheartbeatlive extends CI_Controller
$data_insert = array( $data_insert = array(
'title' => $title, 'title' => $title,
'embed_code' => $embed_code, '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); $insert_id = $this->vheartbeat_live_model->add($data_insert);
// Ghi log // Ghi log
...@@ -171,7 +172,7 @@ class CmsVheartbeatlive extends CI_Controller ...@@ -171,7 +172,7 @@ class CmsVheartbeatlive extends CI_Controller
$data_update = array( $data_update = array(
'title' => $title, 'title' => $title,
'embed_code' => $embed_code, 'embed_code' => $embed_code,
'updated_at' => date('Y-m-d H:i:s')
); );
$this->vheartbeat_live_model->update($id, $data_update); $this->vheartbeat_live_model->update($id, $data_update);
// Ghi log // 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