Created
October 17, 2012 14:22
-
-
Save andyhawthorne/3905775 to your computer and use it in GitHub Desktop.
CI Drivers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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