You are here: Re: $this is undefined in a class « PHP Programming Language « IT news, forums, messages
Re: $this is undefined in a class

Posted by Oli Filth on 10/27/94 11:33

Peter Jay Salzman wrote:
> I have a very simple class: 2 variables, 3 methods. PHP is telling me that
> $this is undefined in one of the functions, but is defined and has the
> expected value in the other two functions.
>
> In the code before, $this is defined in LinksClass() and navbarLinks(), but
> not selectGroup(). I've never seen anything like this before. What could
> possibly be causing this?
>
<...SNIP CODE...>

Can you post some (short) example code of how you are using the class
and calling its methods?

--
Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация