Re: PHP 5 Question about OO

From: Date: Thu, 02 Jun 2005 18:27:08 +0000
Subject: Re: PHP 5 Question about OO
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-216258@lists.php.net to get a copy of this message
On 6/2/05, GamblerZG <gambler@highstream.net> wrote: > Maybe it's just me, but the core concept of __autoload() seems to be > broken to me. Moreover, every proposed solution I've heard about is > totally inside the box. I would do it like this: > 1) Define $_AUTOLOAD superglobal. When forced to do OO, I use it like this: function __autoload( $class ) { require_once( "$GLOBALS[LIB_PATH]/$class.class.php" ); } -- Greg Donald Zend Certified Engineer http://destiney.com/

« previous php.general (#216258) next »