[dev] Fwd: Re: Horde api not working when calling from a function

Michael Rubinsky mike at theupstairsroom.com
Tue Mar 13 16:17:00 UTC 2007




-- Forwarded Message --

More than likely core.php has already been included so $conf is defined outside the scope of your function and you'll need to bring it in scope.

Kshema Vargheese wrote on 3/13/07 2:33 am

>
>I have written this code to a 
>function inside a class.
>
>
>
>@define('AUTH_HANDLER', 
>true);
>
>@define('HORDE_BASE', 
>'C:\Program Files\Apache
>Group\Apache\Dev\phpmvc
>-base\WEB-INF\horde');
>
>require_once HORDE_BASE . 
>'/lib/core.php';
>
>$registry 
>&Registry::singleton();
>
>$auth 
>&Auth::singleton($conf['auth
>']['driver']);
>
>
>
>When I am calling this 
>function I am getting error 
>like "Undefined
>variable: conf".
>
>
>
>But working fine when using 
>directly without using class.
>
>
>
>
>The information contained 
>in, or attached to, this e-
>mail, contains confidential 
>information and is intended 
>solely for the use of the 
>individual or entity to whom 
>they are addressed and is 
>subject to legal privilege. If 
>you have received this e-
>mail in error you should 
>notify the sender 
>immediately by reply e-
>mail, delete the message 
>from your system and 
>notify your system 
>manager. Please do not copy 
>it for any purpose, or 
>disclose its contents to any 

Thanks,
Mike

---
This message sent using my Treo Smartphone.



More information about the dev mailing list