[horde] cannot connect to databaes

Mike Poznecki poz_sa at yahoo.com
Tue Apr 10 16:41:49 UTC 2018


 Can anyone help me on this?  I don't understand why my new class cannot see $injector.



    On Tuesday, April 10, 2018, 10:02:16 AM CDT, Mike Poznecki <poz_sa at yahoo.com> wrote:  
 
 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?  


More information about the horde mailing list