Welcome Guest, Not a member yet? Register   Sign In
Static object inside class
#4

[eluser]Colin Williams[/eluser]
$this $this $this

You need to set a member variable of the class, not a local variable of the member function. You need $this->foob = new Foo()


Messages In This Thread
Static object inside class - by El Forum - 12-17-2008, 10:30 AM
Static object inside class - by El Forum - 12-17-2008, 10:34 AM
Static object inside class - by El Forum - 12-17-2008, 10:55 AM
Static object inside class - by El Forum - 12-17-2008, 11:54 AM
Static object inside class - by El Forum - 12-17-2008, 12:02 PM
Static object inside class - by El Forum - 12-17-2008, 12:07 PM
Static object inside class - by El Forum - 12-17-2008, 01:31 PM
Static object inside class - by El Forum - 12-20-2008, 10:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB