Welcome Guest, Not a member yet? Register   Sign In
Controller shared function
#3

[eluser]Colin Williams[/eluser]
It really does depend on what the shared functionality is.

And for your second question, when you load a library, you've essentially included the file. Just because CI has instantiated it once doesn't mean you can't do it again:

Code:
$this->load->library('human');
$eric = new Human(array('name' => 'Eric', 'age' => '24'));


Messages In This Thread
Controller shared function - by El Forum - 09-25-2008, 11:48 AM
Controller shared function - by El Forum - 09-25-2008, 12:06 PM
Controller shared function - by El Forum - 09-25-2008, 01:06 PM
Controller shared function - by El Forum - 09-25-2008, 01:42 PM
Controller shared function - by El Forum - 09-25-2008, 02:03 PM
Controller shared function - by El Forum - 09-25-2008, 02:55 PM
Controller shared function - by El Forum - 09-25-2008, 02:56 PM
Controller shared function - by El Forum - 09-25-2008, 03:02 PM
Controller shared function - by El Forum - 09-25-2008, 03:24 PM
Controller shared function - by El Forum - 09-25-2008, 03:42 PM
Controller shared function - by El Forum - 09-25-2008, 08:50 PM
Controller shared function - by El Forum - 09-25-2008, 11:31 PM
Controller shared function - by El Forum - 09-25-2008, 11:35 PM
Controller shared function - by El Forum - 09-26-2008, 12:32 AM
Controller shared function - by El Forum - 09-26-2008, 12:45 AM
Controller shared function - by El Forum - 09-26-2008, 07:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB