autoLoad and DataObjects revisited
| From: | pear at electroteque dot org | Date: | Fri, 29 Apr 2005 04:58:22 +0000 |
| Subject: | autoLoad and DataObjects revisited | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-19010@lists.php.net to get a copy of this message | ||
absolutely no go, my autoLoad looks like this
function __autoLoad($classname) {
@require_once preg_replace("_","/",$classname)'.php';
}
however a do of DataObjects_Table_name gets called as u would expect
DataObjects/Table/name.php :)
must think of a better way
it would be nice if __autoLoad could be handled class by class basis not
globally.