Re: Can a class instance a property of another class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# Kixjaguar@xxxxxxxxxxx / 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux