Re: classes

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

 



On Mon, February 18, 2008 2:25 pm, 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?

Your HTML must have some PHP code in there that is wiping out the
instance somehow...

There's no specific "rule" that you can't call a method after
outputting some HTML, though it's usually a bad separation of logic
and presentation.

Unless, of course, the method call IS a presentation...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

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