Posted by Ulf Kadner on 12/24/07 10:44
macca schrieb:
> Take a look at autoloading.
>
> http://uk2.php.net/autoload
>
> e.g.
>
> function __autoload($class_name) {
> require_once $class_name . '.php';
> }
Thats the bad way.
Better to use spl_register_autoload() with userdefined autoload
functions. So other developers are also able to use own autoloads.
So long, Ulf
Navigation:
[Reply to this message]
|