[eluser]tonanbarbarian[/eluser]
umm there may be a syntax error in those examples
the get_instance looks like it was meant to have a comment after it, but it is not commented correctly
try this
Code:
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class getSystem
{
var $CI;
function check()
{
define('MAIL',TRUE); //this is running
$this->CI =& get_instance(); //got instance of CI
$this->CI->load->database();
//$query = $this->CI->db->get('laf_admin'); //if uncommented, gives error
}
}