Classes
| From: | Donahue Ben | Date: | Fri, 28 Mar 2003 17:25:09 +0000 |
| Subject: | Classes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141466@lists.php.net to get a copy of this message | ||
I have a ClassA file and a ClassB file stored in
separate directories. I am trying to get ClassB to
initiate a ClassA object. But since they are stored
in seperate directories I get an error.
So I tried including the ClassA file in ClassB
constructor:
function ClassB()
{
include("../A/ClassA.class.php");
...
}
i cant get this working. How do i solve this problem
without having both class files in the same directory.
Ben
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com