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

Kshema Vargheese kshemav at aztecsoft.com
Tue Mar 13 06:03:37 UTC 2007


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 other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.

www.aztecsoft.com


More information about the dev mailing list