When I'm using $this
inside create_function
I'm getting an error
Fatal error: Using $this when not in object context
create_function('$model, $this', 'return $this->di->getStatus($model->getStatus)');
Later on I call it like
$function($model, $this);
I passed $this
to the function, but doesn't seems to work. There is a way to get around it?
Thanks