Posted by Bzdziul on 10/07/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 :-)
[Back to original message]
|