Skip to content

Instantly share code, notes, and snippets.

@supanadit
Created Aug 1, 2019
Embed
What would you like to do?
<?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