Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webbasics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
webbasics
Commits
af804e03
Commit
af804e03
authored
Jul 14, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated docs.
parent
31fe1d5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
autoloader.php
autoloader.php
+2
-2
No files found.
autoloader.php
View file @
af804e03
...
@@ -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 a
n 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment