Welcome Guest, Not a member yet? Register   Sign In
Loading a Library with a different Name doesn't work
#1

[eluser]Unknown[/eluser]
Hello there,
my Problem is pretty simple:

I have written my own Form Class and I sometimes need more than one instance of it, with a different name.

Code:
$this->load->library("MY_Form");
$this->my_form->setTargetUrl($targetUrl);
This is working.

Code:
$this->load->library("MY_Form", "", "my_form2");
$this->my_form2->setTargetUrl($targetUrl);
This is not.

It worked fine before Codeigniter 2.0 and now I get "Message: Undefined property: User::$my_form2".
Maybe I'm just too stupid to properly read the documentation, but I don't see a mistake on my side.


Messages In This Thread
Loading a Library with a different Name doesn't work - by El Forum - 04-11-2011, 06:56 AM
Loading a Library with a different Name doesn't work - by El Forum - 04-11-2011, 10:22 AM
Loading a Library with a different Name doesn't work - by El Forum - 04-12-2011, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB