Commit 91b704eb by Trần Văn Minh

xóa die()

parent d49b9ba2
...@@ -110,7 +110,7 @@ class CmsTrack extends CI_Controller ...@@ -110,7 +110,7 @@ class CmsTrack extends CI_Controller
// die($active_artist.$active_singer.'ca sĩ'.$id_singer.'/'.$singer.'nhạc sĩ'.$id_artists.'/'.$artist); // die($active_artist.$active_singer.'ca sĩ'.$id_singer.'/'.$singer.'nhạc sĩ'.$id_artists.'/'.$artist);
// Xử lý upload: avatar // Xử lý upload: avatar
if($file != ''){ if($file != ''){
MyHelper::echoPreDie('1230'); // MyHelper::echoPreDie('1230');
$db_art_path = ''; $db_art_path = '';
$upload_path = 'uploads/tracks/arts'; $upload_path = 'uploads/tracks/arts';
$upload_full_path = '/home/aseanvn/public_html/vmusicchart.dcv.vn/' . $upload_path; $upload_full_path = '/home/aseanvn/public_html/vmusicchart.dcv.vn/' . $upload_path;
...@@ -125,7 +125,7 @@ class CmsTrack extends CI_Controller ...@@ -125,7 +125,7 @@ class CmsTrack extends CI_Controller
// if() // if()
if ($this->upload->do_upload('avatar')) { if ($this->upload->do_upload('avatar')) {
$upload_data = $this->upload->data(); $upload_data = $this->upload->data();
MyHelper::echoPreDie('ac: '.$$upload_data); // MyHelper::echoPreDie('ac: '.$$upload_data);
$db_art_path = $upload_path . '/' . $upload_data['file_name']; $db_art_path = $upload_path . '/' . $upload_data['file_name'];
} }
$this->track_model->update($track_id, $title, $db_art_path); $this->track_model->update($track_id, $title, $db_art_path);
......
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