Advertisement
Guest User

Admin.php (controller)

a guest
Apr 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class Admin extends CI_Controller
  5. {
  6.  
  7.     function __construct()
  8.     {
  9.         parent::__construct();
  10.         $this->load->library('template');
  11.     }
  12.  
  13.     public function index()
  14.     {
  15.         $this->load->view('admin/dashboard');
  16.     }
  17.  
  18.     function get_where($table = null)
  19.     {
  20.         $this->db->from($table);
  21.         $this->db->where($where);
  22.  
  23.         return $this->db->get();
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement