4 ms·
It's not necessarily a problem, but it's a smell. Modern object-oriented PHP development is done with autoloaders[1]: having to require_once every class file is
by itafroma 13y ago
It's not necessarily a problem, but it's a smell. Modern object-oriented PHP development is done with autoloaders[1]: having to require_once every class file is unnecessary and brittle. It is odd that GAE doesn't provide its own autoloader for its provided classes, and I'd expect that to be addressed in the future.
[1]: http://php.net/manual/en/language.oop5.autoload.php http://php.net/manual/en/language.oop5.autoload.php
- dancecodes 13y agoyes its smell
- dancecodes 13y agoyou mean spl_autoload http://us.php.net/manual/en/function.spl-autoload.php http://us.php.net/manual/en/function.spl-autoload.php
- dancecodes 13y agomore refine answer: just use spl_autoload_register