Advertisement
Guest User

home

a guest
Feb 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class Dashboard extends CI_Controller {
  5.     public function __construct()
  6.     {
  7.         parent::__construct();
  8.        
  9.         verify_login_status();
  10.     }
  11.     public function index()
  12.     {
  13.         $data['jumlah_customer'] = $this->db->get('customer')->num_rows();
  14.         $data['jumlah_pendaftaran'] = $this->db->get('pendaftaran')->num_rows();
  15.         //debug($data);
  16.         $this->template->load('main', $this->router->fetch_class().'/record', $data);
  17.     }
  18.  
  19. }
  20.  
  21. /* End of file Dashboard.php */
  22. /* Location: ./application/controllers/Dashboard.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement