• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.