template()->addValue($point, $string); } /** * @param string $point * @param string $subTempl * @param array $resource */ public function templateSetSubtemple(string $point, string $subTempl, array $resource = []) : void { $this->template()->setSubtemple($point, $subTempl, $resource); } /** * @param \Exception $exception * @param array $data * @return void */ public function exceptionPage(\Exception $exception, array $data = []) : void { $this->logException($exception, $data); $this->syslogger()->warning($exception->getMessage()." on ".$exception->getFile().":".$exception->getLine(), $data); $this->templateSetSubtemple("main", "/main/errpage.tpl", [ "errorText" => "Error: ".$exception->getMessage()." (".$exception->getCode().")"."" ]); } }