class ModelFile extends CoreModel{
public $var;
public $var2;
public static function getId() {
$this->var = '123';
}
}
I have above model. I am facing issue while using assigned variable. The error I get on above code is
Fatal error: Using $this when not in object context
Any idea of this issue?