Advertisement
freddy0512

panduan

Mar 18th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. class Depan extends CI_Controller
  4. {
  5.  
  6.     public function __construct(){
  7.             parent::__construct();
  8.             $this->load->library('session');
  9.             $this->config->load('facebook');
  10.     }
  11.  
  12.  
  13.  
  14. public function index()
  15.     {
  16. //check jika yang akses handphone
  17.     if ($this->agent->is_mobile())
  18.        {
  19.           $this->admin->load('template-depan-mobile', 'index');
  20.        }
  21.       else
  22.       {   //akses desktop
  23.           $this->admin->load('template-depan', 'index');
  24.       }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement