Welcome Guest, Not a member yet? Register   Sign In
sth confused me
#6

[eluser]vantao[/eluser]
[quote author="rogierb" date="1254248781"]Although it might have been *better* programming to initialize $config, this is now simply done by using the member in the constructor.

So basically one can use any member even if it is not defined;
Using $this->some_member_that_has_not_been_defined = "Some_value"; is allowed.[/quote]


tks for your explanation!!!
maybe this kind of usage is not friendly to newbie


Messages In This Thread
sth confused me - by El Forum - 09-29-2009, 06:43 AM
sth confused me - by El Forum - 09-29-2009, 07:26 AM
sth confused me - by El Forum - 09-29-2009, 07:26 AM
sth confused me - by El Forum - 09-29-2009, 07:32 AM
sth confused me - by El Forum - 09-29-2009, 07:34 AM
sth confused me - by El Forum - 09-29-2009, 07:37 AM
sth confused me - by El Forum - 09-29-2009, 07:39 AM
sth confused me - by El Forum - 09-29-2009, 07:40 AM
sth confused me - by El Forum - 09-29-2009, 09:20 AM
sth confused me - by El Forum - 09-30-2009, 01:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB