Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- class Depan extends CI_Controller
- {
- public function __construct(){
- parent::__construct();
- $this->load->library('session');
- $this->config->load('facebook');
- }
- public function index()
- {
- //check jika yang akses handphone
- if ($this->agent->is_mobile())
- {
- $this->admin->load('template-depan-mobile', 'index');
- }
- else
- { //akses desktop
- $this->admin->load('template-depan', 'index');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement