|
Posted by www.douglassdavis.com on 09/16/05 18:42
Marcin Dobrucki wrote:
>
> I usually do it so that inside the constructor, I do things that are
> very unlikely to fail (eg. set constants, etc), and then defer stuff
> that can fail (eg. getting stuff from DB, etc), to the initalizing
> function.
>
> Constructors are nice, coz then you can "$foo = new Object()". :)
>
thanks. i may do it this way.
[Back to original message]
|