Re: classes

From: Date: Mon, 18 Feb 2008 20:50:43 +0000
Subject: Re: classes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269532@lists.php.net to get a copy of this message
nihilism machine wrote:
if i declare an instance of a class in the top of my php file, then have html, then later on user $myClassInstance->myMethod(); -- myMethod() does not execute, only when i have the instantiation of the class right before the call to the method does it work. any ideas?
Show us some code. Chances are that you're blatting over the $myClassInstance variable, or are running into scope issues. -Stut -- http://stut.net/

« previous php.general (#269532) next »