Commit af804e03 authored by Taddeus Kroes's avatar Taddeus Kroes

Updated docs.

parent 31fe1d5e
...@@ -45,10 +45,10 @@ require_once 'base.php'; ...@@ -45,10 +45,10 @@ require_once 'base.php';
* | bar.php // Contains class 'Bar' * | bar.php // Contains class 'Bar'
* </code> * </code>
* Autoloader::create('classes')->register(); * Autoloader::create('classes')->register();
* Autoloader::create('other_classes')->register(); * Autoloader::create('other_classes', true)->register();
* $foo = new Foo(); // Includes 'classes/foo.php' * $foo = new Foo(); // Includes 'classes/foo.php'
* $bar = new Bar(); // Includes 'other_classes/bar.php', since 'classes/bar.php' does not exist * $bar = new Bar(); // Includes 'other_classes/bar.php', since 'classes/bar.php' does not exist
* $baz = new Baz(); // Throws an exception, since 'other_classes/baz.php' does not exist * $baz = new Baz(); // Throws a FileNotFoundError, since 'other_classes/baz.php' does not exist
* </code> * </code>
* *
* @package BasicWeb * @package BasicWeb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment