public function onAfterExecute() { $this->template->setData($this->data); $res = $this->template->process(); Registry::get('response')->setBody($res); }