![]() |
"$this->" Not in object context?
nvm I was calling the function that was using $this "statically" which I couldn't do.
|
what???????
to call a statis function: Class::method() $this can't be used out of the objects context |
If you call a class statically you must use self::myfuncname(); instead of $this->myfuncname();.PHP: Scope Resolution Operator (::) - Manual
|
| All times are GMT. The time now is 11:09 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0