Re: Help! Blank Screen Only, with DB_DataObjects

From: Date: Tue, 01 Mar 2005 15:56:37 +0000
Subject: Re: Help! Blank Screen Only, with DB_DataObjects
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17756@lists.php.net to get a copy of this message
dmartin-pear@mailblocks.com wrote:
I did find something about define('DB_DATAOBJECT_NO_OVERLOAD', 1); so I tried that (before any DAOs were included), but it made no difference.
Are you sure this is before the *first* require of DB/DataObject.php?
Yes. Can you tell me why some docs say to set it to 1, and others say to set it to 0?
This is indeed an inconsistency in the docs. Truth is, it doesn't matter what value you set it to. The constant just needs to be defined, that's all that counts. And, it *must* be defined *before* any require_once('DB/DataObject.php') - or include_once, alternatively. It's not enough to declare it before the first use of a DataObject, it must be declared before the class file itself is read. CU Markus

« previous php.pear.general (#17756) next »