Parse error: syntax error, unexpected $end in
Posts tagged OOP
Autoloader basics
Aug 26th
Since this is my first post I’ll keep it nice and simple. While there’s a perfectly good autoloader here it’s quite simple and can be expanded.
A basic autoloader is this:
function __autoload($class_name) { require_once $class_name . '.php'; }
As is said this is pretty basic, but it gets the job done, but this will load all the classes from a More >