Re: What's wrong the __autoload()?

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

 



On Wed, Mar 12, 2008 at 10:05 AM, Gustavo Narea <me@xxxxxxxxxxxxxxxx> wrote:
> Hello all,
>
>  I'm wondering what's wrong with the use of __autoload(), since I see that
>  projects like the Zend Framework don't use it and prefer to require_once
>  each required file.
>
>  Thanks in advance.
>  --
>  Gustavo Narea.
>  http://gustavonarea.net/
>
>  Get GNU/Linux! http://www.getgnulinux.org/
>
>
>  --
>  PHP General Mailing List (http://www.php.net/)
>  To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Use spl autoload register instead.  This way your app and dependent
libraries can have their own autoloaders.

http://us2.php.net/manual/en/function.spl-autoload-register.php

-- 
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