04-11-2011, 06:56 AM
[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.
This is working.
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.
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);
Code:
$this->load->library("MY_Form", "", "my_form2");
$this->my_form2->setTargetUrl($targetUrl);
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.