Skip to content

Instantly share code, notes, and snippets.

@andyhawthorne
Created October 17, 2012 14:22
Show Gist options
  • Select an option

  • Save andyhawthorne/3905775 to your computer and use it in GitHub Desktop.

Select an option

Save andyhawthorne/3905775 to your computer and use it in GitHub Desktop.
CI Drivers
<?php
class Testing_example extends CI_Driver
{
private $CI;
public function __construct()
{
$this->CI =& get_instance();
$this->CI->load->database();
}
public function index()
{
$message = "Hello, from the Driver!";
return $message;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment