Welcome Guest, Not a member yet? Register   Sign In
hooks + database(not able to access database)
#4

[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

    }
}


Messages In This Thread
hooks + database(not able to access database) - by El Forum - 01-15-2008, 11:22 PM
hooks + database(not able to access database) - by El Forum - 01-16-2008, 12:08 AM
hooks + database(not able to access database) - by El Forum - 01-16-2008, 12:19 AM
hooks + database(not able to access database) - by El Forum - 01-16-2008, 12:28 AM
hooks + database(not able to access database) - by El Forum - 01-16-2008, 04:04 AM
hooks + database(not able to access database) - by El Forum - 01-16-2008, 05:59 AM
hooks + database(not able to access database) - by El Forum - 01-16-2008, 09:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB