Re: Can a class instance a property of another class
| From: | Roman Neuhauser | Date: | Sat, 27 Jan 2007 00:49:23 +0000 |
| Subject: | Re: Can a class instance a property of another class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247866@lists.php.net to get a copy of this message | ||
# Kixjaguar@comcast.net / 2007-01-26 17:18:37 -0600:
> So, in the __construct method of a business or data class, for
> example, one could:
>
> include_once("connection_classes.kbk");
> $this->connection_class = new connection_class;
>
> This syntax fails, so I know this isn't right, but I hope you get the
> idea.
And we have to guess the error message? I don't see anything wrong
with the syntax. Post a small but complete script, and the error message.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991