note 112373 added to function.autoload
| From: | wojciech dot fornal at gmail | Date: | Fri, 07 Jun 2013 23:56:41 +0000 |
| Subject: | note 112373 added to function.autoload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195104@lists.php.net to get a copy of this message | ||
keyboardSmasher
You may or may not be right as the file name doesn't necessarily have to reflect a class name
it contains (but it's usually considered a good practice). It isn't always a
straightforward mapping (look at some PHP frameworks and autoload implementations).
File myBar.php may contain the class:
class Bar {
}
or it even contain the class:
class Foo {
}
Best regards
----
Server IP: 69.147.83.199
Probable Submitter: 83.26.114.246
----
Manual Page -- http://php.net/manual/en/function.autoload.php
Edit -- https://master.php.net/note/edit/112373
Del: integrated -- https://master.php.net/note/delete/112373/integrated
Del: useless -- https://master.php.net/note/delete/112373/useless
Del: bad code -- https://master.php.net/note/delete/112373/bad+code
Del: spam -- https://master.php.net/note/delete/112373/spam
Del: non-english -- https://master.php.net/note/delete/112373/non-english
Del: in docs -- https://master.php.net/note/delete/112373/in+docs
Del: other reasons-- https://master.php.net/note/delete/112373
Reject -- https://master.php.net/note/reject/112373
Search -- https://master.php.net/manage/user-notes.php