Welcome Guest, Not a member yet? Register   Sign In
[solved]Custom Library Load Failure
#6

[eluser]therealmaloy[/eluser]
ner0tic

ahhh... strange on my case, i was able to run with same configuration with yours Smile

strange indeed but this works for me, i've changed $this->obj to $this->CI as to be consistent with general codes out there Smile

What I did was put another method (function testtest(){...}) instead of just the constructor(s) in the class.

example 1...(Library)
Code:
<?php
    if (!defined('BASEPATH')) exit('No direct script access allowed');

    class Scssauth {
        var $CI;
        var $a_users = array();
        var $d_users = array();
        var $a_set = false;
        var $d_set = false;
        var $acl_denied = 'You are not permitted to view this page.';
        
        function Scssauth() {
            $this->CI =& get_instance();
            $this->CI->load->database();
            log_message('debug','Scssauth :: initialized => '.get_class($this->CI));
              return;
        } // end function Scssauth()

         function testtest()
        {
               $this->CI->output->set_output('testing');
            return;
        }
}

example 1...(Controller)
Code:
$this->scssauth->testtest();


Messages In This Thread
[solved]Custom Library Load Failure - by El Forum - 01-20-2009, 06:34 PM
[solved]Custom Library Load Failure - by El Forum - 01-20-2009, 11:14 PM
[solved]Custom Library Load Failure - by El Forum - 01-21-2009, 04:36 AM
[solved]Custom Library Load Failure - by El Forum - 01-22-2009, 03:25 PM
[solved]Custom Library Load Failure - by El Forum - 01-22-2009, 05:00 PM
[solved]Custom Library Load Failure - by El Forum - 01-22-2009, 05:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB