RE: [PHP] Best Practices for calling 'setup' classes that extend 'parent' classes?
| From: | Jay Blanchard | Date: | Mon, 20 Aug 2007 18:56:20 +0000 |
| Subject: | RE: [PHP] Best Practices for calling 'setup' classes that extend 'parent' classes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261061@lists.php.net to get a copy of this message | ||
[snip]
What is the best practice for correctly targeting 'include' paths
when using Initialization/Setup classes that extend Parent classes?
In my extend_parent_class.php file, I have to provide an incorrect
relative path. Apparently, the path (that does work) is relative to
php file that calls the initialization/setup class
(call_the_extend_parent_class.php). Is there a less confusing way to
correctly target include paths when creating initialization classes?
Should I be using absolute paths instead?
[/snip]
Have you considered autoloading?
http://us2.php.net/autoload