[ciapug] OOPs... I hit a problem

Chris Van Cleve ciapug@cialug.org
Thu, 7 Apr 2005 11:39:39 -0500


Well gang, I've come to a point where I simply had to up the ante on my 
site
building for work. I wrote a class to display pages in a standard 
layout and
format, complete with accepting variables to determine what elements 
should
exist on a page.

The nice thing is, it now only reqires 3 lines to render a page on our 
Intranet,
and I maintain control of layout and design freeing other developers to
concentrate only on the core content of a page.

But here's the downside that I've been trying to resolve for two days 
now. I'm
at my frustration point and havent been able to find a suitable 
explanation or
solution to my problem anywhere online, so I'm coming to the experts 
here. ;)

I use John Lim's excellent ADOdb library for database abstraction. (Now
religious wars about using PEAR::DB etc. The choice is made and the 
debate is
over) I have a file called core.php which contains the OOP for page 
rendering
as well as setting up some constants, including the ADOdb library, and
instantiating 3 DB connections. The problem? no queries ever return any
results. This is odd since the exact same code works fine procedurally. 
Yes, I
globalled the ADOdb connection objects.

I'm at a loss. Does anyone have any advice, suggestions, etc? I'm deeply
frustrated at this point. Thanks!

Chris VC