Re: Procedural Autoloader?

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

 



On Mon, Nov 22, 2010 at 3:05 PM, Richard Quadling <rquadling@xxxxxxxxx>wrote:

> Would it be overboard to use a namespace? Aren't namespaces handled by
> the autoloader? If not autoload(), how about spl_autoloading?
>

Autoloading is for determining the path and filename where a named item is
defined. Namespaces only give you the path. Even with namespaces, you'd
still need to require the files that contain the functions. Plus you'd also
need to use the namespace everywhere you use the function because you cannot
alias functions--only classes. :(

David

[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