There is a magic method:
public function __get ($name) { return $this->data[$name]; } It returns the data in the html-template, but returns it in the form of $this->var , and you need to return without the $this pointer. I tried to use extract() , well, I did not understand anything in it, and nothing came of it.
What can be done?