juliarnasution

Artikel Upload Gambar : Controller upload file

Sep 27th, 2020 (edited)
990
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class Profile extends CI_Controller {
  5.     public function __construct()
  6.     {
  7.         parent::__construct();
  8.         $this->load->model('profile_qry');
  9.     }
  10.     public function index()
  11.     {
  12.         $this->load->view('index');
  13.     }
  14.     public function gantiFotoProfil()
  15.     {
  16.             $result = $this->profile_qry->updateFoto();
  17.             print($result['message']);
  18.         }
  19.  
  20. }
  21.  
  22. /* End of file controllername.php */
  23. /* Location: ./application/controllers/controllername.php */
RAW Paste Data