Advertisement
setyaaji07

index.php (controller)

Feb 21st, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class Home extends CI_Controller {
  5.  
  6.     public function index()
  7.     {
  8.         $this->Msecurity->getSecurity();
  9.        
  10.         $isi['content']    ='tampil_dashboard';
  11.         $isi['judul']      ='Admin Dashboard';
  12.         $isi['sub_judul']  ='Beranda';
  13.  
  14.         $this->load->view('templates/content_body',$isi);
  15.        
  16.     }
  17.    
  18.     public function logout(){
  19.         $this->session->sess_destroy();
  20.         redirect('Login');
  21.     }
  22.  
  23.  
  24. }
  25.  
  26. /* End of file Home.php */
  27. /* Location: ./application/controllers/Home.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement