[horde] Help needed

Mike Poznecki poz_sa at yahoo.com
Wed Apr 11 11:45:00 UTC 2018


 

    On Wednesday, April 11, 2018, 6:31:03 AM CDT, Ralf Lang <lang at b1-systems.de> wrote:  
 
 
Am 11.04.2018 um 13:17 schrieb Mike Poznecki:
> Hi, I have the following code in my new private function:
> global $injector, $registry;
> $sparams = $injector->getInstance('IMP_ Contacts')-> getAddressbookSearchParams();
>
> Which I copied directly from another existing Horde page.  When I run it, I get:
> PHP Fatal error: Call to a member function getInstance() on a non-object
> I have tried many things but cannot get this to work. Can someone tell me what I am doing wrong?

Does the app define a factory or binding for IMP_Contacts? Also, the
copypaste looks like there is a space between IMP_ and Contacts.

-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-- 
Horde mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe at lists.horde.org

I am sure that Horde defines a factory or binding to IMP_Contacts.  It is used in many pages including horde/imp/lib/Contacts.phpAlso, the space in IMP_Contacts is just a typo in my email.  Thanks.  


More information about the horde mailing list