Advertisement
juliarnasution

Artikel Upload Gambar : Controller upload file

Sep 27th, 2020 (edited)
1,823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  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 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement