Re: PHP 5 Question about OO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/2/05, GamblerZG <gambler@xxxxxxxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux