You are here: Re: Singleton class scope problem « PHP Programming Language « IT news, forums, messages
Re: Singleton class scope problem

Posted by Bzdziul on 11/11/74 11:16

Uzytkownik <jbieger@gmail.com> napisal w wiadomosci
news:1116508449.646735.156290@g47g2000cwa.googlegroups.com...
> Fatal error: Access level to Member::__construct() must be public (as
> in class User) in class.member.php on line 6
>
> But I don't want the constructor to be public, because I want it to be
> impossible to create more than one instance.
>
> Does anybody know what to do about this?

Make it protected :-)

 

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

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