Skip to content

Instantly share code, notes, and snippets.

@supanadit
Created August 1, 2019 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save supanadit/ea48bdeecb01b5762007ed6bd2af830a to your computer and use it in GitHub Desktop.
Save supanadit/ea48bdeecb01b5762007ed6bd2af830a to your computer and use it in GitHub Desktop.
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Admin extends CI_Controller
{
public function index()
{
$ip = $_SERVER['HTTP_HOST'];;
$arrayData = array(
"ip" => $ip,
);
$this->load->view('admin', $arrayData);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment