note 51473 added to keyword.extends
| From: | volte6 at nowhere dot com | Date: | Thu, 31 Mar 2005 18:11:14 +0000 |
| Subject: | note 51473 added to keyword.extends | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87277@lists.php.net to get a copy of this message | ||
When declaring a class that relies upon another file ( because it extends the class defined in that
file ), you should ALWAYS require_once() that file at the top.
This applies even when planning on looping through and including everything in the folder. Use
require_once() in your loop, and at the top of the file that NEEDS the include.
----
Manual Page -- http://www.php.net/manual/en/keyword.extends.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51473
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51473&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51473&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51473&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51473&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51473&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51473&report=yes
Search -- http://master.php.net/manage/user-notes.php