Welcome Guest, Not a member yet? Register   Sign In
design philosophy: helpers,libraries, and bears oh my
#6

[eluser]InsiteFX[/eluser]
Yes thats the CI Super object.
Code:
class Someclass {
    
    private $CI;

    public function __construct()
    {
        parent::__construct();

        // get the CI superobject!
        $this->CI =& get_instance();

        // now you can use $this->CI-> to get database etc.
    }

}

InsiteFX


Messages In This Thread
design philosophy: helpers,libraries, and bears oh my - by El Forum - 02-24-2011, 07:34 AM
design philosophy: helpers,libraries, and bears oh my - by El Forum - 02-24-2011, 07:47 AM
design philosophy: helpers,libraries, and bears oh my - by El Forum - 02-24-2011, 07:53 AM
design philosophy: helpers,libraries, and bears oh my - by El Forum - 02-24-2011, 12:29 PM
design philosophy: helpers,libraries, and bears oh my - by El Forum - 02-24-2011, 12:38 PM
design philosophy: helpers,libraries, and bears oh my - by El Forum - 02-24-2011, 03:29 PM
design philosophy: helpers,libraries, and bears oh my - by El Forum - 02-24-2011, 04:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB