Re: Re: OOP Newbie - why does this not work?

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

 



Nathan Tobik wrote:
You have to show us the definition for your class, also your syntax for
new is wrong.  It should be:

$liveclass = new Test();

it can also be (if you have nothing to pass to the constructor function):

$liveclass = new Test;



Nate Tobik
(412)661-5700 x206
VigilantMinds

-----Original Message-----
From: John Taylor-Johnston
[mailto:John.Taylor-Johnston@xxxxxxxxxxxxxxxxxxxxx] Sent: Friday, October 21, 2005 7:57 AM
To: php-general@xxxxxxxxxxxxx
Subject:  Re: OOP Newbie - why does this not work?

Here,s my guess:


     var $liveclass;
     $liveclass = new(Test);
     echo $liveclass->get() ;
     echo "<BR>" ;
    echo "This is in the php code block" ;



--
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