Пример #1
0
 public function uploadTest()
 {
     $path = 'uploads/test.png';
     $imageDa = new ImageDa();
     $imgId = $imageDa->InsertImg($path);
     $this->load->helper('url');
     $fullPath = base_url($path);
     $result = array(0 => $imgId, 1 => $fullPath);
     $jsonResult = json_encode($result);
     echo $jsonResult;
 }