Welcome Guest, Not a member yet? Register   Sign In
Custom Library Question
#7

[eluser]wowdezign[/eluser]
I'm assigning the ci object by reference in my library like the documentation says to.

Are you referring to assigning the form_validation library to an instance by reference?

I just do:

Code:
$this->ci =& get_instance();

and then when I reference any other library, I go through that ci instance like:

Code:
$this->ci->form_validation->set_rules();

etc.

Maybe I misunderstood, but I thought that once the reference to the CI super class was made as a property of the object, I could refer to it from anywhere.


Messages In This Thread
Custom Library Question - by El Forum - 10-30-2009, 08:29 PM
Custom Library Question - by El Forum - 10-30-2009, 08:45 PM
Custom Library Question - by El Forum - 10-30-2009, 11:19 PM
Custom Library Question - by El Forum - 10-30-2009, 11:52 PM
Custom Library Question - by El Forum - 10-31-2009, 06:53 AM
Custom Library Question - by El Forum - 10-31-2009, 11:49 AM
Custom Library Question - by El Forum - 10-31-2009, 05:27 PM
Custom Library Question - by El Forum - 10-31-2009, 06:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB