Topic: Problem with $static = 'TRUE'

Hi! Dear friends, can somebody tell me: what are the problems that can prevent the option '$static = TRUE;' to work properly and how to fix these problems?
thank you!

2 (edited by bellarzios 2021-03-01 13:48:29)

Re: Problem with $static = 'TRUE'

a static (hopefully final) instance variable consitutes a type of singleton (ok, for a real singleton you'd also need to take steps to ensure that the instance class is not instantiated otherwise). This in itself is not bad. It may (or may not) convey that this class should only be used through the instance Tutuapp.