Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Is this the correct way of using __set() in a model?
#3

[eluser]Maarten B[/eluser]
[quote author="alpar" date="1199029548"]
why wouldn't $this->$name do ? There is no point to assign the value of a property to a parent since properties are inherited.[/quote]

Alpar,
Code:
$this->$name = $value;
in the default part of the switch statement works like a charm!

I made it way too difficult and forgot about the inheritance.

Thanks a lot for replying and reminding me! ;-)

Maarten


Messages In This Thread
[SOLVED] Is this the correct way of using __set() in a model? - by El Forum - 12-30-2007, 07:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB