[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] using PEAR DB with groupware? Can itbe don
From: |
Mitch \(bitblock\) |
Subject: |
Re: [Phpgroupware-developers] using PEAR DB with groupware? Can itbe done? |
Date: |
Thu, 23 Jan 2003 19:09:00 -0800 |
>You should not have any problems with this. Our db class is loaded up as
$GLOBALS['phpgw']->db
>Which would seem unlikely to be the location you would have used :-)
>
>Basicly all our classes are loaded up as subclasses of $GLOBALS['phpgw']
and all our settings and data go into $GLOBALS['phpgw_info']
>We did this specificly to avoid variable naming conflicts with any apps
that get ported in.
>
>Seek3r
Not sure of the reason, but it didn't work. I read on other lists that you
can't have two classes with the same name - makes sense to me for other oo
languages I've used, so the problem seems to be that in the definition of
the DB class, it is called DB - which is the same as PEAR's DB.
Copying the PEAR files and doing a simple search and replace fixed the
problem though.
thanks.
m/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Phpgroupware-developers] using PEAR DB with groupware? Can itbe done?,
Mitch \(bitblock\) <=